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

Disassembly:
push 0xffffffffffffffff
push 0x54ab40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [0x5ab980]
push ebx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov bl, 4
xor edi, edi
mov byte [esp + 0x68], bl
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], edi
test eax, eax
mov dword [esp + 0x20], eax
je 0x4a6df6
push ebp
mov ebp, dword [esp + 0x7c]
push esi
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x80]
push edx
call fcn.00423e90
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 5
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], bl
call fcn.005128e4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a6de8
mov cl, byte [eax]
mov esi, dword [esp + 0x84]
cmp cl, 0x5b
jne 0x4a6a94
test esi, esi
je 0x4a6a3b
mov dword [esp + 0x24], 0
push 0x5d
lea ecx, [esp + 0x20]
call fcn.00512dab
test eax, eax
jle 0x4a6a94
inc eax
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 6
call fcn.00512a1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], bl
call fcn.005128e4
test esi, esi
je 0x4a6a94
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov ecx, esi
call fcn.0047bb60
test eax, eax
je 0x4a6a94
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x4a6de8
test esi, esi
je 0x4a6ab3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a6de8
push 0x3d
lea ecx, [esp + 0x20]
call fcn.00512dab
mov esi, eax
test esi, esi
jl 0x4a6de8
lea eax, [esi + 1]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0050e172
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 7
call fcn.00512a1d
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], bl
call fcn.005128e4
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x4a6de8
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 8
call fcn.00512a1d
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], bl
call fcn.005128e4
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x4a6b5c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0047bb60
test eax, eax
je 0x4a6de8
test byte [eax + 4], 1
je 0x4a6de8
lea ecx, [esp + 0x20]
lea edx, [esp + 0x80]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.004a6700
add esp, 0x14
sub eax, 0
je 0x4a6d43
dec eax
je 0x4a6d91
dec eax
jne 0x4a6de8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a6bf4
lea edx, [esp + 0x10]
push 0x3d
lea eax, [esp + 0x44]
push edx
push eax
call fcn.0050dd7d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 0xc
call fcn.00512b13
push eax
mov eax, dword [esp + 0x84]
mov byte [esp + 0x74], 0xd
lea ecx, [eax + 8]
call fcn.00512a1d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0xc
call fcn.005128e4
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x40]
jmp 0x4a6de2
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.004f9670
add esp, 8
test eax, eax
je 0x4a6de8
mov edx, dword [esp + 0x14]
push str._windows_
push edx
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x4a6ced
mov eax, dword [esp + 0x10]
push str.load
push eax
call fcn.004f9670
add esp, 8
test eax, eax
je 0x4a6c54
mov ecx, dword [esp + 0x10]
push 0x5a3ee4
push ecx
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x4a6ced
lea edx, [esp + 0x10]
push 0x3d
lea eax, [esp + 0x54]
push edx
push eax
call fcn.0050dd7d
lea ecx, [esp + 0x20]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 0xe
call fcn.00512b13
push 0x20
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x78], 0xf
push eax
call fcn.0050dd7d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 0x10
call fcn.00512b13
push eax
mov eax, dword [esp + 0x84]
mov byte [esp + 0x74], 0x11
lea ecx, [eax + 8]
call fcn.00512a1d
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 0x10
call fcn.005128e4
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0xf
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 0xe
call fcn.005128e4
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x50]
jmp 0x4a6de2
lea ecx, [esp + 0x10]
push 0x3d
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.0050dd7d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x54]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 0x12
call fcn.00512b13
push eax
mov eax, dword [esp + 0x84]
mov byte [esp + 0x74], 0x13
lea ecx, [eax + 8]
call fcn.00512a1d
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 0x12
call fcn.005128e4
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x58]
jmp 0x4a6de2
push 0x5b0738
mov ecx, ebp
call fcn.00510f94
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00510fd7
lea edx, [esp + 0x5c]
push 0x56cc
push edx
call fcn.00422640
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x74], 9
call fcn.00510fd7
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], bl
call fcn.005128e4
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x10]
push 0x3d
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0050dd7d
lea edx, [esp + 0x18]
mov byte [esp + 0x70], 0xa
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00512b13
mov ecx, dword [esp + 0x80]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x78], 0xb
call fcn.005110a0
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 0xa
call fcn.005128e4
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x64]
call fcn.005128e4
inc edi
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4a69e0
pop esi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x68], 3
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 2
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 0
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret