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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4010c0]
xor eax, esp
mov dword [esp + 0x68], eax
and dword [esp + 0x18], 0
mov eax, edx
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
inc edx
mov dword [esp + 0x30], eax
mov esi, dword [ebx + 0x18]
push edi
mov byte [ebx + 0xb1], dl
or esi, 0xffffffbf
cmp eax, 1
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0xc]
mov edx, 0x42e790
mov edi, 0x42e984
mov dword [esp + 0x3c], eax
cmove edx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
xor edx, edx
push edx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x64], 0x42f394
push 5
push eax
mov dword [esp + 0x78], 0x42efd8
mov dword [esp + 0x7c], 0x4319f0
mov dword [esp + 0x80], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
call fcn.004a2551
and dword [ebx + 0x18], esi
add esp, 0x10
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x4a2ab3
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [esp + 0x18], ecx
lea esi, [eax + ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], esi
test ecx, ecx
jne 0x4a2872
mov eax, dword [eax + 0x1c]
inc ecx
or word [eax + 0x4e], cx
jmp 0x4a2ad2
call fcn.00468ffc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4a2884
cmp byte [ecx + 8], 0
jne 0x4a28b4
push 0
xor edx, edx
call fcn.0046b53b
mov edi, eax
pop ecx
test edi, edi
je 0x4a28ad
mov ecx, edi
call fcn.004c42f3
mov ecx, dword [esp + 0x14]
mov edx, ebx
push eax
call fcn.00459a78
pop ecx
jmp 0x4a2aa7
xor eax, eax
inc eax
mov dword [esp + 0x24], eax
xor edi, edi
lea ebx, [esp + 0x48]
mov ecx, dword [esi + 4]
inc edi
push ebx
mov edx, edi
call fcn.0047183f
add ebx, 4
pop ecx
cmp edi, 5
jl 0x4a28ba
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x20]
and eax, 0x2000000
or eax, 0
je 0x4a28eb
xor eax, eax
lea edi, [esp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4a293f
cmp dword [esp + 0x10], 0
jne 0x4a299e
test byte [ebx + 0x18], 0x40
jne 0x4a299e
and al, 3
movzx edx, al
push 1
pop eax
cmove edx, eax
cmp dword [ebx + 0xbc], 0
jle 0x4a2938
cmp dl, byte [ebx + 0x54]
je 0x4a2938
test byte [ebx + 0x18], 4
jne 0x4a2938
push 6
pop edi
jmp 0x4a2a98
mov ecx, ebx
call fcn.00495dfd
mov ecx, dword [esi + 0xc]
mov al, byte [ebx + 0x54]
mov byte [ecx + 0x4d], al
mov edi, dword [esi + 0xc]
cmp dword [edi + 0x50], 0
jne 0x4a2975
mov ecx, dword [esp + 0x50]
call fcn.0045d91c
test eax, eax
mov ecx, 0xfffff830
cmove eax, ecx
mov dword [edi + 0x50], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x50]
call fcn.0046afbe
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x4c]
mov byte [eax + 0x4c], cl
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x4a298e
xor edx, edx
inc edx
mov byte [eax + 0x4c], dl
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x4a29c1
push 0x431a38
jmp 0x4a29ab
and eax, 3
cmp al, byte [ebx + 0x54]
je 0x4a293f
push 0x42fec8
mov ecx, dword [esp + 0x18]
mov edx, ebx
call fcn.00459a78
xor eax, eax
pop ecx
lea edi, [eax + 1]
jmp 0x4a2a98
cmp dword [esp + 0x10], 0
jne 0x4a29d7
cmp ecx, 4
jl 0x4a29d7
mov eax, dword [ebx + 0x24]
and dword [ebx + 0x20], 0xfffffffd
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x20]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x10]
push dword [eax + ecx]
push 0x431a50
push ebx
call fcn.0045b770
mov esi, dword [ebx + 0x16c]
lea ecx, [esp + 0x3c]
and dword [ebx + 0x16c], 0
push 0
push ecx
push fcn.004a2551
push eax
push ebx
mov dword [esp + 0x44], eax
call fcn.0049e2ac
mov edx, dword [esp + 0x44]
mov edi, eax
add esp, 0x24
mov dword [ebx + 0x16c], esi
test edi, edi
cmove edi, dword [esp + 0x38]
test edx, edx
je 0x4a2a42
mov ecx, ebx
call fcn.004594d9
test edi, edi
jne 0x4a2a51
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0048ef9d
cmp byte [ebx + 0x57], 0
je 0x4a2a6a
push 7
pop edi
mov ecx, ebx
call fcn.00490791
mov esi, dword [ebx + 0x10]
add esi, dword [esp + 0x18]
jmp 0x4a2a98
test edi, edi
je 0x4a2a80
mov eax, dword [ebx + 0x20]
and eax, 0x8000000
or eax, 0
je 0x4a2a94
cmp edi, 7
je 0x4a2a94
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx + 0xc]
xor ecx, ecx
inc ecx
or word [eax + 0x4e], cx
xor edi, edi
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
je 0x4a2aa7
mov ecx, dword [esi + 4]
call fcn.0046c089
mov ecx, dword [esi + 4]
call fcn.00469075
test edi, edi
je 0x4a2ad2
cmp edi, 7
je 0x4a2ac0
cmp edi, 0xc0a
jne 0x4a2ac7
mov ecx, ebx
call fcn.00459aa2
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0049072d
mov ecx, dword [esp + 0x74]
mov eax, edi
pop edi
pop esi
mov byte [ebx + 0xb1], 0
pop ebx
xor ecx, esp
call fcn.004caec8
mov esp, ebp
pop ebp
ret