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

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ebx, dword [ecx + 0x14]
push 0x160
mov eax, dword [edi]
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], eax
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
push edx
mov dword [esp + 0x1c], edx
lea eax, [eax + eax*4]
shl eax, 3
add ebx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ebx
mov esi, dword [ebx]
mov dword [esp + 0x3c], esi
call fcn.0045e8b0
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [ebx + 0xc], ebp
je 0x4a1c5d
mov dl, byte [ebx + 0x12]
push edi
or dl, 0x10
push ebp
mov byte [ebx + 0x12], dl
call fcn.004a0930
push 0x44
push esi
push ebp
call fcn.004a0950
mov eax, dword [esp + 0x64]
push ebp
push eax
call fcn.004a0cf0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
mov al, byte [ecx + 0x40]
test al, al
jne 0x4a1c5d
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
or ecx, 0xffffffff
dec eax
mov edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], eax
js 0x4a1a57
mov eax, ecx
or eax, edx
je 0x4a1a57
mov al, byte [edi + 0x10]
test al, al
jne 0x4a19b6
mov ecx, dword [esp + 0x14]
xor eax, eax
push 0x158
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00459430
mov esi, eax
add esp, 8
test esi, esi
je 0x4a1a3b
mov dl, byte [edi + 0x12]
mov dword [edi + 0xc], esi
or dl, 0x20
mov word [edi + 0x10], 0x200
mov byte [edi + 0x12], dl
mov edx, dword [esp + 0x54]
xor ebx, ebx
mov eax, dword [edx]
mov dword [esp + 0x48], ebx
push eax
push esi
call fcn.004a0930
mov ecx, dword [edi]
push 0x45
push ecx
push esi
call fcn.004a0950
mov edx, dword [esp + 0x64]
push esi
push edx
call fcn.004a0cf0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
add esp, 0x1c
mov al, byte [ecx + 0x40]
test al, al
jne 0x4a1999
mov eax, dword [esi + 0xc]
mov ebp, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x20], ebx
jle 0x4a1995
mov edx, dword [ebp]
xor eax, eax
mov al, byte [edx]
push eax
call fcn.004a13a0
add esp, 4
test eax, eax
je 0x4a1982
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add edx, 0x3c
push ecx
push edx
call fcn.004a0a90
or ebx, eax
mov eax, dword [esp + 0x50]
add esp, 8
or eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xc]
inc eax
add ebp, 0x28
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4a194e
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
and edx, ebx
and ecx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jmp 0x4a1a37
test byte [edi + 0x12], 8
jne 0x4a1a3b
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 8]
push edx
lea ebx, [ecx + 0x3c]
push ebx
call fcn.004a0a90
mov esi, eax
mov al, byte [edi + 0x12]
add esp, 8
mov ebp, edx
test al, 2
je 0x4a19fc
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
mov eax, dword [eax + 8]
push eax
push ebx
call fcn.004a0a90
add esp, 8
or esi, eax
or ebp, edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov al, byte [edi + 0x10]
and edx, esi
and ecx, ebp
mov dword [esp + 0x28], edx
test al, 2
mov dword [esp + 0x2c], ecx
jne 0x4a1a1f
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x4a1a2f
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
and ecx, esi
and eax, ebp
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
dec eax
add edi, 0x28
mov dword [esp + 0x24], eax
test eax, eax
jge 0x4a18b5
mov dword [ebp + 0x158], ecx
or ecx, edx
mov dword [ebp + 0x15c], edx
jne 0x4a1a6b
xor eax, eax
jmp 0x4a1a70
mov eax, 0x100
mov ecx, dword [esp + 0x3c]
mov word [ebx + 0x10], ax
or ecx, dword [esp + 0x40]
je 0x4a1c5d
xor ebx, ebx
or edi, 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x4a1a95
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
test ebx, ebx
jne 0x4a1b84
mov esi, dword [ebp + 0x14]
mov ebp, dword [ebp + 0xc]
dec ebp
js 0x4a1c5d
mov cl, byte [esi + 0x12]
mov eax, dword [esi + 8]
and cl, 0xbf
cmp eax, edi
mov byte [esi + 0x12], cl
je 0x4a1add
mov edx, eax
mov eax, dword [esp + 0x1c]
add eax, 0x3c
push edx
push eax
call fcn.004a0a90
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0x4a1aeb
dec ebp
add esi, 0x28
test ebp, ebp
jl 0x4a1c5d
jmp 0x4a1aaa
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
test ebp, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
jl 0x4a1c5d
mov ebx, 1
test ebx, ebx
je 0x4a1b66
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x4a1b1c
mov al, byte [esi + 0x12]
and al, 0xbf
jmp 0x4a1b5b
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0xc]
cmp eax, ecx
je 0x4a1b2b
xor ebx, ebx
jmp 0x4a1b5e
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push eax
call fcn.00488c60
mov ecx, dword [esi]
movsx edi, al
mov edx, dword [ecx + 8]
push edx
call fcn.00488c60
add esp, 8
test edi, edi
movsx eax, al
je 0x4a1b56
cmp edi, eax
je 0x4a1b56
xor ebx, ebx
jmp 0x4a1b5e
mov al, byte [esi + 0x12]
or al, 0x40
mov byte [esi + 0x12], al
dec ebp
add esi, 0x28
test ebp, ebp
jge 0x4a1b06
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x4a1a8d
test ebx, ebx
je 0x4a1c5d
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
xor edi, edi
xor eax, eax
dec ecx
js 0x4a1bca
lea ebx, [ecx + 1]
test byte [esi + 0x12], 0x40
je 0x4a1bc4
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
push 0
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.0048c000
push eax
mov eax, dword [esp + 0x2c]
push edi
mov ecx, dword [eax]
push ecx
call fcn.004861e0
mov edx, dword [esi]
mov edi, eax
add esp, 0x18
mov eax, dword [edx + 8]
add esi, 0x28
dec ebx
jne 0x4a1b94
mov ebx, dword [esp + 0x14]
push 0
push eax
push ebx
call fcn.0048c000
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
push 0x48
push eax
call fcn.00485da0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4a1c49
mov ecx, dword [esp + 0x34]
push ecx
push esi
call fcn.004a17e0
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x5c]
push 3
push esi
push edi
call fcn.004a09a0
mov edx, dword [esp + 0x64]
mov esi, eax
push esi
push edi
push edx
call fcn.004a0d20
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x58]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x78]
add esp, 0x20
add ecx, eax
mov dword [eax + edx*8 + 4], esi
mov eax, ecx
pop edi
pop esi
mov byte [ecx + 0x13], 1
pop ebp
mov dword [esp + 0xc], ecx
mov word [eax + 0x10], 0x800
pop ebx
add esp, 0x3c
ret
push edi
push ebx
call fcn.0047d600
mov eax, dword [esp + 0x20]
add esp, 8
mov word [eax + 0x10], 0x800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret