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

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xa4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
je 0x4a6673
push eax
call fcn.004f3750
add esp, 4
mov dword [esp + 0x38], eax
jmp 0x4a6677
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov dword [eax], ebp
mov byte [ecx], 0
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 0x68]
mov bl, byte [eax + 0x7e]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov esi, 0x7fffffff
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov byte [esp + 0x5c], 0
mov ecx, dword [eax + 0x74]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x70]
push ebp
cmp bl, 0x21
push edx
lea ecx, [esp + 0x48]
sete byte [esp + 0x32]
call fcn.004b5f20
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x40]
call fcn.004b7bb0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dl, byte [ecx + eax]
inc ecx
mov dword [esp + 0x40], ecx
mov byte [esp + 0x1a], dl
mov dl, byte [ecx + eax]
inc ecx
mov byte [esp + 0x1b], dl
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov byte [esp + 0x80], 0
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
cmp ecx, ebp
mov dword [esp + 0x40], ecx
jl 0x4a6ade
mov edx, dword [esp + 0x44]
cmp edx, 0xffffffff
je 0x4a6761
lea esi, [ecx + 1]
cmp esi, edx
jg 0x4a6ade
mov al, byte [ecx + eax]
inc ecx
test al, al
mov byte [esp + 0x13], al
mov dword [esp + 0x40], ecx
je 0x4a6ae3
push 0x20
call fcn.00446b60
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4a6e19
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esi + 0x1c], 0
mov dword [esp + 0x2c], esi
jne 0x4a67a4
xor ebx, ebx
mov dword [esp + 0x34], esi
jmp 0x4a67a7
mov dword [ebx + 0x1c], esi
mov al, byte [esp + 0x13]
and al, 8
mov dword [esp + 0x30], ebx
mov byte [esp + 0x27], al
je 0x4a6946
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add eax, ecx
add ecx, 2
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.004b6f30
mov edi, eax
test edi, edi
je 0x4a6e19
cmp dword [edi + 0x78], 3
jne 0x4a6e19
mov cl, byte [edi + 0x7e]
xor ebp, ebp
cmp cl, 0xa
jne 0x4a6885
mov eax, dword [edi]
cmp eax, ebp
je 0x4a6885
mov edx, dword [edi + 4]
push edx
push ebp
push eax
lea ecx, [esp + 0x6c]
call fcn.004b5f20
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
movzx ecx, byte [eax + edx]
lea ecx, [eax + ecx + 1]
mov dword [esp + 0x64], ecx
mov al, byte [ecx + edx]
mov dl, al
shr al, 5
and al, 1
inc ecx
mov dword [esp + 0x64], ecx
and dl, 1
mov byte [esi + 1], al
mov eax, dword [esp + 0x20]
mov byte [esi], dl
mov eax, dword [eax + 0x210]
cmp eax, ebp
jne 0x4a6858
mov ecx, dword [esp + 0x20]
call fcn.004ba290
cmp eax, 5
jle 0x4a6868
cmp word [edi + 0x34], 0x3e
jne 0x4a6868
inc dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
add edx, ecx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x64]
mov dword [esi + 0xc], eax
jmp 0x4a6966
cmp cl, 0x30
je 0x4a6895
cmp cl, 0x4b
jne 0x4a6e19
xor ebp, ebp
movzx eax, word [edi + 0x36]
mov cl, byte [edi + 0x38]
shl eax, 1
test cl, 8
je 0x4a68a5
add eax, eax
mov ecx, dword [edi + 0x70]
cmp ecx, ebp
jne 0x4a68b5
cmp dword [edi + 0x74], ebp
jne 0x4a6dc6
mov edx, dword [edi + 0x74]
push edx
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.004b5f20
mov al, byte [edi + 0x38]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
test al, 8
lea eax, [edx + ecx]
je 0x4a68fc
add edx, 4
mov dword [esp + 0x64], edx
movzx ebx, byte [eax + 1]
xor edx, edx
mov dh, byte [eax + 3]
mov dl, byte [eax + 2]
movzx eax, byte [eax]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x30]
shl edx, 8
or eax, edx
jmp 0x4a690c
add edx, 2
mov dword [esp + 0x64], edx
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, edx
add ecx, eax
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x64]
cmp eax, ebp
mov dword [esi + 0xc], edx
jl 0x4a6def
cmp eax, dword [esp + 0x68]
jg 0x4a6def
mov al, byte [edi + 0x38]
shr al, 2
and al, 1
mov byte [esi], al
mov cl, byte [edi + 0x38]
shr cl, 6
and cl, 1
mov byte [esi + 1], cl
jmp 0x4a6966
test ebx, ebx
je 0x4a6e19
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov cl, byte [ebx]
mov byte [esi], cl
mov dl, byte [ebx + 1]
mov byte [esi + 1], dl
xor ebp, ebp
mov al, byte [esp + 0x13]
test al, 4
je 0x4a6989
movzx eax, byte [esp + 0x26]
push eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x44]
call fcn.004b6070
mov al, byte [esp + 0x13]
test al, 1
je 0x4a6992
add dword [esp + 0x40], 2
test al, 2
je 0x4a69b5
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [ecx + edx]
add ecx, 2
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov word [esi + 2], cx
jmp 0x4a69c7
cmp ebx, ebp
je 0x4a69c3
mov dx, word [ebx + 2]
mov word [esi + 2], dx
jmp 0x4a69c7
mov word [esi + 2], bp
mov al, byte [esp + 0x27]
test al, al
je 0x4a69ed
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add eax, ecx
add ecx, 2
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov word [esi + 4], cx
jmp 0x4a69ff
cmp ebx, ebp
je 0x4a69fb
mov dx, word [ebx + 4]
mov word [esi + 4], dx
jmp 0x4a69ff
mov word [esi + 4], bp
cmp dword [esp + 0xb4], ebp
je 0x4a6a3c
cmp ebx, ebp
je 0x4a6a3c
movsx eax, word [ebx + 2]
movzx ecx, word [esi + 4]
movsx edx, word [esi + 2]
add eax, ecx
cmp edx, eax
jle 0x4a6a3c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xbc]
mov byte [esi + 6], 1
mov byte [ecx], 1
jmp 0x4a6a40
mov byte [esi + 6], 0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esp + 0x40], ecx
mov byte [esi + 0x10], al
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add edx, ecx
mov dword [esi + 0x14], edx
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
sub ecx, edi
mov dword [esi + 0x18], ecx
movzx ecx, al
mov al, byte [esi + 1]
add edx, ecx
test al, al
mov dword [esp + 0x1c], edx
je 0x4a6a92
mov edx, dword [esp + 0x14]
lea eax, [ecx + ecx]
cmp edx, eax
ja 0x4a6aa1
mov dword [esp + 0x14], eax
jmp 0x4a6aa1
cmp byte [esi], 0
jne 0x4a6aa1
cmp dword [esp + 0x14], ecx
ja 0x4a6aa1
mov dword [esp + 0x14], ecx
movzx edx, byte [esp + 0x1a]
movzx eax, byte [esp + 0x1b]
add eax, edx
imul ecx, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
jns 0x4a6ac8
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x4a6acb
inc eax
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x3c]
jmp 0x4a6741
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4a6b03
inc eax
push eax
call fcn.00446b60
add esp, 4
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x4a6e19
xor ebp, ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4a6e19
lea ecx, [eax + eax + 2]
push ecx
call fcn.00446b60
mov edx, dword [esp + 0xbc]
add esp, 4
test eax, eax
mov dword [edx], eax
je 0x4a6e19
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0xac]
cmp eax, ecx
mov dword [esp + 0x14], 0
jb 0x4a6b50
lea eax, [ecx - 1]
mov dword [esp + 0xac], eax
mov ebx, dword [esp + 0xb0]
cmp ebx, ecx
jb 0x4a6b65
lea ebx, [ecx - 1]
mov dword [esp + 0xb0], ebx
cmp ebx, eax
jae 0x4a6b72
mov ebx, eax
mov dword [esp + 0xb0], ebx
mov edi, dword [esp + 0x34]
sub ebx, eax
inc ebx
test edi, edi
mov dword [esp + 0x84], ebx
je 0x4a6da1
jmp 0x4a6b90
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x4a6bc9
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xac]
jbe 0x4a6bc9
cmp eax, dword [esp + 0xb0]
ja 0x4a6bc9
mov al, byte [edi + 6]
test al, al
je 0x4a6bc9
push ecx
push esi
call fcn.004f3860
mov eax, dword [esp + 0x40]
add esp, 8
lea esi, [esi + eax*2]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.004b5f20
lea ecx, [esp + 0x3c]
call fcn.004b6370
movzx eax, byte [edi + 0x10]
mov ebp, dword [esp + 0x28]
dec eax
mov dword [esp + 0x2c], eax
js 0x4a6cf6
movzx eax, byte [esp + 0x1a]
movzx ecx, byte [esp + 0x1b]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
call fcn.004b63b0
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.004b6440
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jb 0x4a6cd7
mov edx, dword [esp + 0xb0]
cmp eax, edx
ja 0x4a6cd7
cmp byte [edi], 0
lea eax, [ebx + ebx]
jne 0x4a6c5a
mov eax, ebx
mov ecx, dword [edi + 0xc]
cmp eax, ecx
ja 0x4a6e19
push ecx
push eax
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x6c]
call fcn.004b5f20
mov al, byte [edi + 1]
test al, al
mov edx, dword [esp + 0x60]
je 0x4a6ca4
mov ecx, dword [esp + 0x64]
lea eax, [ecx + edx]
add ecx, 2
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
test ah, 0xff
je 0x4a6c9f
mov byte [ebp], ah
inc ebp
mov byte [ebp], al
jmp 0x4a6cd6
cmp byte [edi], 0
je 0x4a6cc7
mov ecx, dword [esp + 0x64]
lea eax, [ecx + edx]
add ecx, 2
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
add esi, 2
mov cl, byte [eax]
mov word [esi - 2], cx
jmp 0x4a6cd7
mov eax, dword [esp + 0x64]
mov cl, byte [eax + edx]
inc eax
mov dword [esp + 0x64], eax
mov byte [ebp], cl
inc ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jns 0x4a6c10
mov ebx, dword [esp + 0x84]
lea ecx, [esp + 0x3c]
call fcn.004b6380
cmp ebp, dword [esp + 0x28]
jbe 0x4a6d52
mov al, byte [edi + 1]
test al, al
jne 0x4a6d11
cmp byte [edi], 0
jne 0x4a6d52
mov edx, dword [esp + 0xb8]
mov byte [ebp], 0
mov eax, dword [edx]
mov ecx, esi
sub ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 1
sub eax, ecx
mov cl, byte [edi + 1]
inc eax
push eax
mov eax, dword [esp + 0x2c]
neg cl
push esi
push 0xffffffffffffffff
push eax
push 0
sbb ecx, ecx
and ecx, 0x3a4
push ecx
call dword [0x68a2c8]
test eax, eax
jbe 0x4a6d52
lea esi, [esi + eax*2 - 2]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb0]
cmp eax, ecx
ja 0x4a6d6e
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4a6b90
jmp 0x4a6da1
inc ecx
cmp eax, ecx
jne 0x4a6da1
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x4a6da1
mov al, byte [edi + 6]
test al, al
je 0x4a6da1
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4a6da1
mov ecx, eax
push ecx
push esi
call fcn.004f3860
mov eax, dword [esp + 0x40]
add esp, 8
lea esi, [esi + eax*2]
add ebx, eax
mov edx, dword [esp + 0xb8]
mov word [esi], 0
mov eax, dword [edx]
lea ecx, [eax + ebx*2 + 2]
add esi, 2
cmp esi, ecx
mov byte [esp + 0x12], 1
je 0x4a6e19
mov byte [esp + 0x12], 0
jmp 0x4a6e19
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xd4]
push 1
call fcn.004ceb90
mov eax, dword [esi + 0xd4]
mov edx, dword [eax]
push 0x8e
push 3
push eax
call dword [edx + 0xe0]
jmp 0x4a6e16
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xd4]
push 1
call fcn.004ceb90
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax]
push 0x8e
push 3
push eax
call dword [ecx + 0xe0]
add esp, 0xc
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4a6e33
mov eax, esi
mov esi, dword [esi + 0x1c]
push eax
call fcn.006058d0
add esp, 4
test esi, esi
jne 0x4a6e21
mov edx, dword [esp + 0x28]
push edx
call fcn.006058d0
mov al, byte [esp + 0x16]
add esp, 4
test al, al
pop edi
pop esi
pop ebp
pop ebx
je 0x4a6e55
mov al, 1
add esp, 0x94
ret
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax]
push ecx
call fcn.006058d0
add esp, 4
xor al, al
add esp, 0x94
ret