Function at 0x46c8e0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], edi
mov eax, dword [edi]
movzx edx, byte [edi + 0x1c]
not edx
and edx, 1
mov eax, dword [eax]
inc dword [ecx + 0x4c]
mov ebx, dword [ecx + 0x4c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
add eax, edx
add eax, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ebx
je 0x46c93d
mov ebx, dword [ebp + 0xc]
sub ebx, dword [esp + 0x10]
sub ebx, edx
jmp 0x46c945
inc ebx
add eax, dword [esp + 0x18]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46c952
inc ecx
jmp 0x46c955
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 0x74]
mov dword [esp + 0x2c], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
mov ecx, dword [esp + 0xc]
test edx, eax
jne 0x46c9a6
lea eax, [edx*8 + 4]
push 0
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00418a40
mov ecx, dword [esp + 0x24]
add esp, 8
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x78], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x46c9b8
mov dword [eax + edx*4], 0xffffffff
push 5
push dword [ebp + 0x10]
not edx
mov dword [edi + 0x18], edx
mov edx, dword [edi]
push ebx
call fcn.00450580
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x46ca4f
mov ecx, dword [esi + 0x20]
lea eax, [ebx + edx]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x46ca11
push 0
push dword [esp + 0x30]
mov edx, 0x6f
mov ecx, esi
push dword [esp + 0x24]
call fcn.004376e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x46ca4b
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
lea edi, [ebx + edx]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x28]
mov word [eax + ecx*4], 0x6f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x20]
cmp dword [ebp + 0x18], 0
jne 0x46ca6d
push dword [ebp + 0x14]
lea eax, [ebx + edx]
mov edx, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x10]
push eax
call fcn.0044f230
add esp, 8
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x46ca9d
push dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, esi
push edx
add eax, ebx
mov edx, 0x60
push eax
call fcn.004376e0
add esp, 0xc
jmp 0x46cad6
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
add edi, ebx
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x28]
mov word [eax + ecx*4], 0x60
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x14], 0
jle 0x46ccf9
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x4c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
add dword [ecx + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov edx, ecx
sub edx, dword [edi + 4]
mov eax, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x34], edx
test eax, eax
je 0x46cb15
lea eax, [ebx + ecx]
mov edx, 0x16
push eax
jmp 0x46cb1d
push dword [edi + 8]
mov edx, 0x6b
mov ecx, esi
call fcn.00437800
add esp, 4
mov dword [esp + 0x20], eax
mov edx, 0x5d
mov ecx, esi
push dword [edi + 4]
push ebx
push dword [esp + 0x24]
call fcn.00437720
mov ecx, dword [edi + 0x14]
add esp, 0xc
test ecx, ecx
jns 0x46cb4d
mov ecx, dword [esi + 0x20]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46cb5c
mov ecx, 0x520b44
jmp 0x46cb65
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
cmp byte [eax + 0x45], 0
jne 0x46cdd8
mov eax, dword [esp + 0x34]
add eax, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x10], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call fcn.004a35f0
mov ecx, dword [esi]
add esp, 0xc
cmp byte [ecx + 0x45], 0
je 0x46cbbb
push dword [esp + 0x10]
mov edx, 0xfffffffa
call fcn.004381b0
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x46cbf2
mov eax, dword [esi + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x46cbe7
push 0xfffffffffffffffa
push dword [esp + 0x14]
mov edx, ecx
mov ecx, esi
call fcn.004383e0
mov eax, dword [esp + 0x18]
add esp, 8
jmp 0x46cbf2
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfa
movzx eax, word [eax + 8]
mov edx, dword [edi]
dec eax
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x18]
call fcn.0046dc50
mov ecx, dword [esp + 0x30]
mov edx, 0x12
mov dword [ecx + 0x10], eax
mov ecx, esi
mov eax, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
inc eax
push eax
push 0
push eax
call fcn.00437720
add esp, 0x14
mov ecx, esi
call fcn.00437e30
mov ecx, dword [esp + 0xc]
mov edx, 0xe
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x4c]
inc eax
mov dword [ecx + 0x4c], eax
mov ecx, esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
push eax
call fcn.00437870
push dword [edi + 8]
mov edx, 0x82
mov ecx, esi
call fcn.00437800
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x46cc7e
push dword [edi + 0x18]
mov edx, 0x16
mov ecx, esi
push eax
call fcn.00437870
add esp, 8
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x46cc96
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46cca5
mov eax, 0x520b44
jmp 0x46ccae
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], edx
mov edx, ebx
push dword [edi + 4]
push dword [esp + 0x20]
call fcn.0044f230
mov ecx, dword [esi + 0x20]
add esp, 8
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x46ccde
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46cced
mov eax, 0x520b44
jmp 0x46ccf6
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [edi + 0x1c]
mov ecx, dword [esi + 0x20]
and al, 1
mov ebx, dword [edi + 8]
movzx edx, al
mov eax, dword [esi + 0x18]
neg edx
sbb edx, edx
add edx, 0x7c
cmp dword [eax + 0x58], ecx
jg 0x46cd29
push 0
push dword [esp + 0x1c]
mov ecx, esi
push ebx
call fcn.004376e0
add esp, 0xc
jmp 0x46cd5e
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4], dl
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46cdd8
push 1
push 0
push eax
mov edx, 0x41
mov ecx, esi
call fcn.00437720
add esp, 0xc
mov edx, 0x21
mov ecx, esi
mov ebx, eax
push dword [edi + 8]
call fcn.00437800
add esp, 4
mov edx, 0x73
mov ecx, esi
push dword [edi + 8]
call fcn.00437800
mov ecx, dword [esi + 0x20]
add esp, 4
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov edx, dword [esi + 0x20]
test ebx, ebx
jns 0x46cdb4
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x46cdcb
mov eax, 0x520b44
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret