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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov byte [ecx], 0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
add ecx, esi
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x46f490
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x46f4d0
mov ecx, eax
call fcn.00470e80
test bl, bl
mov eax, dword [esi]
jne 0x46f4b0
mov ecx, dword [eax - 0xc]
add ecx, esi
test byte [ecx + 0xd], 0x10
je 0x46f4b5
mov ebx, dword [ecx + 0x78]
mov eax, dword [ebx + 8]
cmp dword [ebx + 0xc], eax
jbe 0x46f511
mov ebp, dword [ecx + 0x7c]
movzx eax, byte [eax]
test ebp, ebp
je 0x46f53b
mov edx, dword [ebp + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
je 0x46f4b5
lea esi, [esi]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x46f4e0
add eax, 1
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x46f500
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
jne 0x46f460
mov eax, dword [esi]
add esi, dword [eax - 0xc]
mov ecx, esi
jmp 0x46f4b5
xor edx, edx
or edx, eax
or edx, 4
mov dword [esp], edx
call fcn.004b1fd0
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 8
add esi, dword [eax - 0xc]
mov ecx, esi
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x46f490
mov byte [edi], 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 8
test bl, bl
jne 0x46f4bc
test byte [ecx + 0xd], 0x10
je 0x46f4bc
jmp 0x46f431
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
cmp eax, 0xffffffff
jne 0x46f530
mov eax, dword [esi]
add esi, dword [eax - 0xc]
mov ecx, esi
mov eax, dword [ecx + 0x14]
mov edx, 2
jmp 0x46f492
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, 0xffffffff
je 0x46f4ec
jmp 0x46f47b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
add ecx, esi
mov ebp, dword [ecx + 0x7c]
test ebp, ebp
je 0x46f53b
cmp eax, 0xffffffff
je 0x46f4f3
jmp 0x46f44e
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
jmp 0x46f470
call fcn.004b4860
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov byte [ecx], 0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
add ecx, esi
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x46f5f0
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x46f630
mov ecx, eax
call fcn.00470e80
test bl, bl
mov eax, dword [esi]
jne 0x46f610
mov ecx, dword [eax - 0xc]
add ecx, esi
test byte [ecx + 0xd], 0x10
je 0x46f615
mov ebx, dword [ecx + 0x78]
mov eax, dword [ebx + 8]
cmp dword [ebx + 0xc], eax
jbe 0x46f671
mov ebp, dword [ecx + 0x7c]
movzx eax, byte [eax]
test ebp, ebp
je 0x46f69b
mov edx, dword [ebp + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
je 0x46f615
lea esi, [esi]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x46f640
add eax, 1
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x46f660
movzx eax, byte [eax]
mov edx, dword [ebp + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
jne 0x46f5c0
mov eax, dword [esi]
add esi, dword [eax - 0xc]
mov ecx, esi
jmp 0x46f615
xor edx, edx
or edx, eax
or edx, 4
mov dword [esp], edx
call fcn.004b1fd0
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 8
add esi, dword [eax - 0xc]
mov ecx, esi
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x46f5f0
mov byte [edi], 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 8
test bl, bl
jne 0x46f61c
test byte [ecx + 0xd], 0x10
je 0x46f61c
jmp 0x46f591
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
cmp eax, 0xffffffff
jne 0x46f690
mov eax, dword [esi]
add esi, dword [eax - 0xc]
mov ecx, esi
mov eax, dword [ecx + 0x14]
mov edx, 2
jmp 0x46f5f2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
cmp eax, 0xffffffff
je 0x46f64c
jmp 0x46f5db
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
add ecx, esi
mov ebp, dword [ecx + 0x7c]
test ebp, ebp
je 0x46f69b
cmp eax, 0xffffffff
je 0x46f653
jmp 0x46f5ae
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
jmp 0x46f5d0
call fcn.004b4860
push esi
push ebx
sub esp, 0x14
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
mov ebx, dword [ecx + eax + 0x7c]
test ebx, ebx
je 0x46f70f
cmp byte [ebx + 0x1c], 0
mov esi, ecx
je 0x46f6e3
movsx eax, byte [ebx + 0x27]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call 0x46f720
sub esp, 0xc
add esp, 0x14
pop ebx
pop esi
ret 8
mov ecx, ebx
call fcn.0042d100
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov eax, 0xa
cmp edx, 0x42d3d0
je 0x46f6be
mov dword [esp], 0xa
mov ecx, ebx
call edx
sub esp, 4
movsx eax, al
jmp 0x46f6be
call fcn.004b4860
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
lea esi, [esp + 0x80]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], 0x4bda00
mov dword [esp + 0x58], 0x4c01d4
mov dword [esp + 0x5c], esi
lea esi, [esp + 0x3c]
mov dword [esp + 0x60], 0x46facd
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], dl
mov dword [esp], esi
mov dword [esp + 0x64], esp
mov dword [esp + 0x38], esi
call fcn.00414b80
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x7f]
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x40], 0xffffffff
call fcn.0046f3e0
sub esp, 8
cmp byte [esp + 0x7f], 0
je 0x46f8c1
mov edx, dword [esp + 0x28]
movzx esi, byte [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x2c], esi
mov eax, dword [eax - 0xc]
mov eax, dword [edx + eax + 0x78]
mov edi, eax
mov dword [esp + 0x20], eax
mov eax, dword [eax + 8]
cmp dword [edi + 0xc], eax
jbe 0x46fa70
movzx eax, byte [eax]
mov esi, dword [esp + 0x28]
movsx edi, byte [esp + 0x18]
mov edx, dword [esi + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], edx
nop
lea esi, [esi]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x14]
setne cl
cmp dword [esp + 0x2c], eax
lea ebx, [esi + 1]
setne dl
test cl, dl
je 0x46f930
cmp ebx, dword [esp + 0xa4]
jge 0x46f930
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov edi, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xa4]
sub edx, dword [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x24], esi
sub ecx, edi
sub edx, 1
cmp edx, ecx
cmovle ecx, edx
cmp ecx, 1
mov dword [esp + 0x1c], ecx
jg 0x46f970
mov esi, dword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x20]
mov byte [esi], al
mov eax, dword [esp + 0x28]
add edx, 1
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0xc]
add dword [eax + 4], 1
mov eax, dword [edi + 8]
cmp eax, edx
jae 0x46fa43
add eax, 1
mov dword [edi + 8], eax
cmp eax, edx
jae 0x46fa90
mov edx, dword [esp + 0x28]
movzx eax, byte [eax]
mov esi, dword [edx + 4]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0xa0], edx
jmp 0x46f7f0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 6
call eax
xor edx, edx
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jle 0x46f8d8
mov eax, dword [esp + 0xa0]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test eax, eax
jne 0x46f922
or edx, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, dword [eax - 0xc]
or edx, dword [ecx + 0x14]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], edx
call fcn.004b1fd0
sub esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00414c10
mov eax, dword [esp + 0x28]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test edx, edx
je 0x46f905
jmp 0x46f8e6
cmp eax, 0xffffffff
je 0x46fa10
cmp dword [esp + 0x2c], eax
mov edx, 4
jne 0x46f8c3
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ebx
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
jae 0x46f8ae
add eax, 1
mov dword [edx + 8], eax
xor edx, edx
jmp 0x46f8c3
mov eax, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memchr
test eax, eax
je 0x46f9d0
sub eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jne 0x46f9d0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], edi
add dword [esp + 0xa0], edi
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
add eax, edi
cmp dword [esp + 0x24], eax
mov edx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [edx + 4], ebx
jbe 0x46fa20
movzx eax, byte [eax]
jmp 0x46f7f0
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
jmp 0x46f992
mov edx, 2
jmp 0x46f8c3
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 4
call eax
mov edx, dword [esp + 0x28]
mov edi, dword [edx + 4]
mov dword [esp + 0x14], edi
jmp 0x46f7f0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 1
call eax
cmp eax, 0xffffffff
jne 0x46fabe
mov eax, dword [esp + 0x34]
mov edx, 2
mov dword [esp + 0xa0], eax
jmp 0x46f8c3
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 5
call eax
jmp 0x46f7d4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 1
call eax
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [edi + 4]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], edi
jmp 0x46f7f0
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x46f888