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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
lea edi, [esp + 0x14]
lea esi, [esp + 0x10]
mov eax, 0x48a008
call fcn.0049b3e2
test al, al
jne 0x4a016a
xor eax, eax
jmp 0x4a0732
mov edi, dword [esp + 0x10]
mov eax, dword [0x48a064]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [0x48a078]
mov eax, dword [eax + esi*4]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x70]
mov byte [esp + 0x23], al
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [esp + 0xc], eax
jge 0x4a01a5
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and eax, 0x100
mov dword [esp + 0x14], eax
je 0x4a01c4
mov ecx, esi
mov eax, edi
call fcn.0049bf87
mov dword [esp + 0xc], 1
test word [ebp + 8], 0x800
je 0x4a01e7
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x34]
call dword [0x46762c]
mov dword [esp + 0xc], 1
movzx eax, byte [esp + 0x23]
cmp eax, 0x14
jg 0x4a051b
je 0x4a0441
cmp eax, 9
je 0x4a03f7
cmp eax, 0xb
je 0x4a03b2
cmp eax, 0xc
je 0x4a0163
cmp eax, 0xd
jle 0x4a0632
cmp eax, 0xf
jle 0x4a02e5
cmp eax, 0x11
jne 0x4a0632
push 0xfffffffffffffff0
push dword [ebx + 0x28]
call dword [fcn.00467558]
mov cl, byte [ebp + 8]
mov eax, dword [ebx + 0xc]
and cl, 1
neg cl
mov dword [esp + 0x7c], eax
mov eax, 0x1000
mov dword [esp + 0x78], 8
mov dword [esp + 0x84], 0xf010
sbb ecx, ecx
and ecx, eax
add ecx, eax
test word [ebp + 8], 0x200
mov dword [esp + 0x80], ecx
je 0x4a0280
or dword [esp + 0x80], 0x10
mov esi, dword [fcn.00467588]
lea eax, [esp + 0x78]
push eax
push 0
push 0x113f
push dword [ebx + 0x28]
call esi
test word [ebp + 8], 0x400
je 0x4a02ae
push dword [ebx + 0xc]
push 2
push 0x1102
push dword [ebx + 0x28]
call esi
cmp dword [esp + 0x14], 0
je 0x4a0549
mov edi, dword [ebx + 0x28]
mov ecx, 0x48a008
call fcn.0049b229
mov ecx, eax
mov eax, dword [esp + 0x10]
call fcn.0049bf87
push dword [ebx + 0xc]
push 9
push 0x110b
push dword [ebx + 0x28]
call esi
jmp 0x4a0549
mov edi, dword [0x4674d8]
and dword [esp + 0xc], 0
lea eax, [esp + 0x4c]
push eax
push 0
push esi
push dword [ebx + 8]
mov dword [esp + 0x5c], 0x2c
mov dword [esp + 0x60], 1
call edi
test eax, eax
je 0x4a0163
mov al, byte [ebp + 8]
test al, 0x20
jne 0x4a0163
test al, al
jns 0x4a032c
mov dword [esp + 0xc], 3
test al, 1
je 0x4a0335
or dword [esp + 0xc], 8
cmp dword [esp + 0x14], 0
je 0x4a0344
or dword [esp + 0xc], 0x80
test byte [esp + 0x58], 8
je 0x4a0354
test al, 4
jne 0x4a0354
or dword [esp + 0xc], 8
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
push 0
push esi
push dword [ebx + 8]
call dword [0x4675bc]
test word [ebp + 8], 0x200
je 0x4a037a
push 0
push esi
jmp 0x4a0398
lea eax, [esp + 0x4c]
push eax
push 0
push esi
push dword [ebx + 8]
call edi
test eax, eax
je 0x4a03a1
test word [esp + 0x58], 0x1000
je 0x4a03a1
push 0
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [0x4674b0]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [0x467450]
jmp 0x4a0549
test byte [ebp + 8], 0x10
je 0x4a0632
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x148], 0
movzx eax, byte [ebx + 0x73]
je 0x4a03d9
mov edx, dword [ecx + 0x144]
mov dword [ecx + 0x140], edx
push eax
mov edi, ecx
mov esi, 0x48a008
call fcn.004a1766
movzx eax, byte [ebx + 0x73]
mov ecx, edi
mov dword [ecx + 0x144], eax
jmp 0x4a0549
mov eax, dword [ebp + 8]
and eax, 7
sub eax, 0
je 0x4a0421
dec eax
je 0x4a0413
push 0
push 0
push 0x467
jmp 0x4a056d
push 0xffff0000
push 0xffffffffffffffff
push 0x465
jmp 0x4a042a
push 0
push 0
push 0x466
push dword [esp + 0x28]
call dword [fcn.00467588]
test eax, eax
je 0x4a0632
jmp 0x4a0549
mov ebx, dword [ebx + 0x28]
mov edi, dword [fcn.00467588]
and dword [esp + 0x10], 0
lea eax, [esp + 0xa0]
push eax
push 0xffffffffffffffff
push 0x1053
push ebx
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb8], esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4a0163
and dword [esp + 0x2c], 0
push 0xffffffffffffffec
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 8
call dword [fcn.00467558]
test al, 4
mov esi, 0x2000
je 0x4a04d7
test byte [ebp + 8], 5
je 0x4a04d7
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffff000
add eax, esi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x104c
push ebx
mov dword [esp + 0x44], 0xf000
call edi
mov dword [esp + 0x10], eax
test word [ebp + 8], 0x2100
je 0x4a0512
cmp dword [esp + 0x14], 0
je 0x4a04eb
or dword [esp + 0x30], 0xffffffff
test dword [ebp + 8], esi
je 0x4a04f5
and dword [esp + 0x30], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 0x102b
push ebx
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
jmp 0x4a0732
sub eax, 0x16
je 0x4a05ae
dec eax
dec eax
je 0x4a0579
dec eax
je 0x4a0556
dec eax
jne 0x4a0632
mov eax, dword [ebp + 8]
and eax, 7
je 0x4a0632
and eax, 3
push eax
mov eax, esi
call fcn.0049ebe9
mov dword [esp + 0xc], 1
jmp 0x4a0632
mov eax, dword [ebp + 8]
and eax, 7
je 0x4a0632
push 0
and eax, 3
push eax
push 0xf1
push dword [esp + 0x28]
call dword [fcn.00467588]
jmp 0x4a0549
test word [ebp + 8], 0x200
je 0x4a0632
mov eax, dword [esp + 0x18]
push 0
push esi
push 0x401
push dword [eax]
call dword [fcn.00467588]
call dword [fcn.00467568]
cmp eax, dword [ebx]
jne 0x4a0549
mov ecx, esi
mov eax, edi
call fcn.0049bf87
jmp 0x4a0549
mov ecx, dword [0x48a088]
push 3
pop esi
cmp ecx, esi
jl 0x4a0632
mov eax, dword [0x48a078]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0
je 0x4a05e3
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x18]
cmp edx, dword [edi + 4]
jne 0x4a05e3
cmp byte [eax + 0x70], 3
jne 0x4a05e3
mov eax, dword [eax]
cmp eax, dword [ebx + 0x28]
je 0x4a05ea
inc esi
cmp esi, ecx
jle 0x4a05bb
jmp 0x4a0632
mov al, byte [ebx + 0x72]
test byte [ebp + 8], al
jne 0x4a0632
test al, 0x10
je 0x4a0632
mov eax, dword [0x48a078]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
movsx ecx, word [eax + 0x6e]
push 0
push ecx
movsx ecx, word [eax + 0x6c]
push ecx
movsx ecx, word [eax + 0x6a]
push ecx
movsx ecx, word [eax + 0x68]
push ecx
push dword [eax]
call dword [fcn.004675d8]
push 0
push dword [ebx + 0x28]
push 0x469
push dword [esp + 0x28]
call dword [fcn.00467588]
mov eax, dword [ebp + 8]
and eax, 0x10f8
mov dword [esp + 0x10], eax
jle 0x4a072e
mov edi, dword [0x467550]
xor eax, eax
test byte [esp + 0x10], 0x80
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov esi, 0xc0
je 0x4a0671
push eax
push dword [esp + 0x20]
mov dword [esp + 0x1c], esi
call edi
mov eax, esi
test byte [esp + 0x10], 0x40
je 0x4a0686
push 1
push dword [esp + 0x20]
mov dword [esp + 0x1c], esi
call edi
mov eax, esi
mov edx, dword [esp + 0x10]
and edx, 0x20
je 0x4a0692
add eax, 0x30
mov ecx, dword [esp + 0x10]
and ecx, 0x10
mov dword [esp + 0x14], ecx
je 0x4a06a2
add eax, 0x30
test byte [esp + 0x10], 8
mov esi, 0x1008
je 0x4a06b0
add eax, esi
test word [esp + 0x10], 0x1000
je 0x4a06bb
add eax, esi
not al
and al, byte [ebx + 0x72]
or al, byte [esp + 0x10]
mov byte [ebx + 0x72], al
mov al, byte [ebx + 0x73]
cmp al, 0xff
je 0x4a06e4
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x140]
movzx eax, al
cmp eax, ecx
je 0x4a06e4
cmp ecx, 0xffffffff
jne 0x4a072e
test edx, edx
mov esi, dword [0x4675fc]
je 0x4a06f6
push 0
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x14], 0
je 0x4a071a
push 4
push dword [esp + 0x20]
call esi
cmp byte [esp + 0x23], 0x1a
jne 0x4a071a
test byte [ebx + 0x72], 0x40
je 0x4a071a
push 1
push dword [esp + 0x20]
call edi
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x31], 0
jne 0x4a072e
push 1
push ebx
mov esi, eax
call fcn.0049b450
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4