Function at 0x46f160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp]
mov edx, dword [ecx]
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, dword [esi + 8]
xor ebx, ebx
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x34]
push ebx
mov dword [esp + 0x30], eax
push ebx
push 0x21
mov eax, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call fcn.004562d0
add esp, 0x10
test eax, eax
jne 0x46f7a3
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x6c]
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea eax, [ecx - 1]
mov dword [esp + 0x60], edx
mov dword [esp + 0x30], ecx
test ecx, eax
jne 0x46f1ea
mov eax, dword [edx + 0x70]
mov esi, dword [edx]
lea ecx, [ecx*8 + 4]
push ebx
push ecx
call fcn.00420ee0
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
add esp, 8
mov dword [edx + 0x70], eax
mov edx, dword [edx + 0x70]
cmp edx, ebx
je 0x46f1f8
mov dword [edx + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
push eax
mov dword [esp + 0x20], eax
push ebp
mov eax, esi
call fcn.0046ee80
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx]
mov dword [esp + 0x40], eax
add esp, 8
xor eax, eax
cmp ecx, ebx
jle 0x46f271
add edx, 0x30
jmp 0x46f250
test byte [edx], 8
jne 0x46f25f
inc eax
add edx, 0x50
cmp eax, ecx
jl 0x46f250
jmp 0x46f271
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x24]
shl edx, 4
mov ecx, dword [edx + eax + 0x38]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x60], ecx
inc ecx
mov dword [esi + 0x44], ecx
xor eax, eax
cmp byte [ebp + 4], 0x73
jne 0x46f299
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
setne al
inc ecx
mov dword [esi + 0x44], ecx
lea eax, [eax + eax + 6]
jmp 0x46f2a4
cmp dword [esp + 0x14], ebx
setne al
lea eax, [eax + eax + 5]
inc dword [esi + 0x48]
mov edx, dword [esp + 0x60]
mov byte [esp + 0x44], al
mov eax, dword [esi + 0x48]
mov dword [esp + 0x48], edx
mov byte [esp + 0x45], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x20]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x34], eax
jg 0x46f2e6
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f313
mov eax, dword [esp + 0x34]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x3c
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x14], ebx
je 0x46f3fa
push ebp
push esi
call fcn.0046f040
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x18]
add ecx, 2
add esp, 8
cmp dword [eax + 0x54], esi
mov dword [esp + 0x34], ecx
jg 0x46f35b
push edi
call fcn.0043c840
add esp, 4
test eax, eax
je 0x46f357
mov esi, 1
jmp 0x46f380
mov ecx, dword [esp + 0x34]
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
mov byte [eax], 0x39
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, esi
cmp ecx, ebx
je 0x46f3de
cmp byte [edx + 0x40], bl
jne 0x46f3de
cmp esi, ebx
jge 0x46f398
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.0043cf00
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x46f3c9
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x54], ecx
jmp 0x46f443
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x54], ecx
jmp 0x46f443
mov ecx, dword [esp + 0x2c]
mov eax, 0xfffffffa
call fcn.0043cf00
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x54], ecx
jmp 0x46f443
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], eax
mov dword [esp + 0x34], eax
jg 0x46f41a
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f443
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x60]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x39
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x20], ebx
je 0x46f49d
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], ecx
mov dword [esp + 0x34], ecx
jg 0x46f470
push edi
call fcn.0043c840
add esp, 4
test eax, eax
je 0x46f46c
mov ecx, 1
jmp 0x46f495
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x20]
mov byte [eax], 0x39
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
or word [ebp + 6], 8
mov dword [ebp + 0x10], ecx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
push eax
mov dword [ebp + 0x30], ebx
push esi
mov dword [eax + 0x38], ebx
call fcn.00473840
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [edx + 0x38], ebp
cmp eax, ebx
jne 0x46f77f
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x46f4e7
push edi
call fcn.0043c840
add esp, 4
test eax, eax
je 0x46f4e7
mov dword [esp + 0x2c], 1
jmp 0x46f514
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x1c]
mov byte [eax], 0x6c
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x2c], esi
mov esi, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x46f52c
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f551
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x18]
mov byte [eax], 0x68
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x14]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp eax, ebx
je 0x46f597
mov ecx, dword [eax]
inc ecx
cmp dword [edx + 0x54], esi
mov dword [esp + 0x34], ecx
jg 0x46f57c
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f5d2
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
inc dword [edi + 0x20]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x2f
mov dword [eax + 0xc], ecx
jmp 0x46f5c2
cmp dword [edx + 0x54], esi
jg 0x46f5a9
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f5d2
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x66
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov edx, dword [esp + 0x60]
mov byte [eax + 1], bl
mov dword [eax + 0x10], ebx
mov dword [eax + 4], edx
mov byte [eax + 3], bl
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
cmp dword [edx + 0x54], esi
jg 0x46f5ea
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f60f
mov ecx, dword [edi + 4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x60]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x5f
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x34], eax
test eax, edx
jne 0x46f64b
mov esi, dword [ecx]
lea eax, [eax*8 + 4]
push ebx
push eax
mov eax, dword [ecx + 0x70]
call fcn.00420ee0
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [ecx + 0x70]
cmp ecx, ebx
je 0x46f659
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [esp + 0x38]
or esi, 0xffffffff
sub esi, eax
push esi
push edx
mov eax, edi
call fcn.0046cd90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [ebp]
push esi
push ecx
push ebx
push ebx
mov ebx, dword [esp + 0x78]
push edx
push eax
push ebp
call fcn.0046cf30
xor ebx, ebx
add esp, 0x28
cmp dword [esp + 0x30], ebx
je 0x46f6e3
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
cmp dword [ecx + 0x54], eax
mov dword [esp + 0x60], eax
jg 0x46f6b6
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f6e3
mov eax, dword [esp + 0x60]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov byte [eax], 0x8b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, esi
js 0x46f6fa
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x46f6fa
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x5c]
dec eax
mov dword [ecx + 0x58], eax
lea ecx, [esp + 0x44]
push ecx
push ebp
push edx
mov dword [ebp + 0x34], ebx
call fcn.00473840
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x34], eax
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add esp, 0xc
cmp dword [ecx + 0x54], esi
jg 0x46f736
push edi
call fcn.0043c840
add esp, 4
test eax, eax
jne 0x46f75b
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov ecx, dword [esp + 0x2c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x10
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [edi + 0x18]
or eax, 0xffffffff
sub eax, dword [esp + 0x1c]
js 0x46f774
mov edx, dword [ecx + 0x70]
cmp edx, ebx
je 0x46f774
mov esi, dword [edi + 0x20]
mov dword [edx + eax*4], esi
mov edx, dword [edi + 0x20]
mov esi, dword [esp + 0x5c]
dec edx
mov dword [ecx + 0x58], edx
mov eax, dword [ebp + 0x30]
mov ecx, dword [esi]
push eax
push ecx
call fcn.0044eb50
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret