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

Disassembly:
push 0xffffffffffffffff
push 0x547a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4a4a98
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a47c1
mov dword [ecx + 0x1c], eax
mov ecx, dword [ecx + 0x1c]
mov al, byte [esi + 8]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x6c]
mov edx, dword [ecx + 0xc]
xor edi, edi
mov di, word [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x10]
xor ebx, ebx
mov bx, word [esi + 0xa]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x68]
xor ebp, ebp
mov bp, word [esi + 6]
push eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebx
call fcn.004bc3a0
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x4a4a8d
test eax, eax
je 0x4a4a8d
mov ecx, esi
call fcn.004b6d10
cmp eax, 1
jle 0x4a488a
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp cx, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jg 0x4a4848
mov ax, word [esp + 0x2a]
cmp ax, word [esp + 0x2e]
jle 0x4a486a
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push edx
mov ecx, dword [edi + 0x1c]
call fcn.004bc360
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
jmp 0x4a486e
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.004b6b80
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x1c], edx
jmp 0x4a4a98
mov ecx, esi
call fcn.004b6d30
test eax, eax
mov dword [esp + 0x7c], eax
je 0x4a48d7
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4a48d7
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004bc360
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x88]
call fcn.004bc360
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x84]
push edx
push eax
call fcn.0047c900
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
and edx, 0xff
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 8]
cmp ecx, edx
jle 0x4a49e9
cmp byte [esp + 0x14], 0x10
jae 0x4a49e9
mov eax, dword [eax + 8]
mov edx, dword [esi + 0xc]
sar eax, 3
test ebp, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x68], eax
jbe 0x4a4a8d
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x78], eax
test edi, edi
jbe 0x4a49b9
mov eax, dword [esp + 0x7c]
dec eax
je 0x4a4968
sub eax, 3
je 0x4a4951
sub eax, 4
jne 0x4a4985
xor ebx, ebx
mov bl, byte [ebp]
jmp 0x4a4984
test dl, 1
je 0x4a4960
xor ebx, ebx
mov bl, byte [ebp]
shr ebx, 4
jmp 0x4a4984
mov bl, byte [ebp]
and ebx, 0xf
jmp 0x4a4985
mov cl, byte [ebp]
mov eax, edx
and eax, 7
mov ebx, dword [eax*4 + 0x67a8e4]
and bl, cl
neg bl
sbb ebx, ebx
neg ebx
cmp eax, 7
jne 0x4a4985
inc ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x78]
lea esi, [eax + ebx*4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x78]
mov ecx, eax
mov eax, dword [esp + 0x18]
add esi, ecx
inc edx
mov dword [esp + 0x78], esi
cmp edx, eax
jb 0x4a4939
mov edi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x70]
add ecx, eax
mov eax, dword [esp + 0x6c]
add esi, edx
dec eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x6c], eax
jne 0x4a4923
jmp 0x4a4a8d
lea ecx, [esp + 0x40]
call fcn.004bb6f0
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], ecx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x40], edi
cmp eax, esi
mov dword [esp + 0x44], ebp
je 0x4a4a7c
mov ax, word [esp + 0x6c]
mov dx, word [esp + 0x68]
mov word [esp + 0x7a], ax
mov al, byte [0x943a3d]
test al, 1
mov word [esp + 0x78], dx
jne 0x4a4a5a
mov dl, al
push fcn.00458ab0
or dl, 1
mov word [0x9660fc], si
mov byte [0x943a3d], dl
mov word [0x9660fe], si
call fcn.0053228e
add esp, 4
mov eax, dword [ebx + 0x1c]
push esi
push esi
push ebp
lea ecx, [esp + 0x84]
push edi
push ecx
push 0x9660fc
lea edx, [esp + 0x58]
push eax
push edx
call fcn.0047d2c0
add esp, 0x20
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], 0xffffffff
call fcn.004bc350
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x18