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

Disassembly:
push 0xffffffffffffffff
push 0x531758
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 0x496d88
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x496ab1
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.004a8d30
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x74], eax
test ecx, ecx
je 0x496d7d
test eax, eax
je 0x496d7d
mov ecx, esi
call fcn.004a3fb0
cmp eax, 1
jle 0x496b7a
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 0x496b38
mov ax, word [esp + 0x2a]
cmp ax, word [esp + 0x2e]
jle 0x496b5a
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push edx
mov ecx, dword [edi + 0x1c]
call fcn.004a8cf0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
jmp 0x496b5e
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.004a3e30
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x1c], edx
jmp 0x496d88
mov ecx, esi
call fcn.004a3fd0
test eax, eax
mov dword [esp + 0x7c], eax
je 0x496bc7
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x496bc7
lea eax, [esp + 0x30]
push 0
push eax
call fcn.004a8cf0
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x88]
call fcn.004a8cf0
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x84]
push edx
push eax
call fcn.00474190
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 0x496cd9
cmp byte [esp + 0x14], 0x10
jae 0x496cd9
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 0x496d7d
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 0x496ca9
mov eax, dword [esp + 0x7c]
dec eax
je 0x496c58
sub eax, 3
je 0x496c41
sub eax, 4
jne 0x496c75
xor ebx, ebx
mov bl, byte [ebp]
jmp 0x496c74
test dl, 1
je 0x496c50
xor ebx, ebx
mov bl, byte [ebp]
shr ebx, 4
jmp 0x496c74
mov bl, byte [ebp]
and ebx, 0xf
jmp 0x496c75
mov cl, byte [ebp]
mov eax, edx
and eax, 7
mov ebx, dword [eax*4 + 0x659a34]
and bl, cl
neg bl
sbb ebx, ebx
neg ebx
cmp eax, 7
jne 0x496c75
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 0x496c29
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 0x496c13
jmp 0x496d7d
lea ecx, [esp + 0x40]
call fcn.004a81e0
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 0x496d6c
mov ax, word [esp + 0x6c]
mov dx, word [esp + 0x68]
mov word [esp + 0x7a], ax
mov al, byte [0x8d8105]
test al, 1
mov word [esp + 0x78], dx
jne 0x496d4a
mov dl, al
push fcn.00402b00
or dl, 1
mov word [0x8fa7d8], si
mov byte [0x8d8105], dl
mov word [0x8fa7da], si
call fcn.0051c6ca
add esp, 4
mov eax, dword [ebx + 0x1c]
push esi
push esi
push ebp
lea ecx, [esp + 0x84]
push edi
push ecx
push 0x8fa7d8
lea edx, [esp + 0x58]
push eax
push edx
call fcn.00474b30
add esp, 0x20
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], 0xffffffff
call fcn.004a8ce0
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