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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x178
mov eax, dword [esp + 0x18c]
lea edi, [esp + 0x120]
mov esi, ecx
mov dword [edi], edx
mov dword [edi + 4], eax
and dword [edi + 8], 0
push 0x30
pop edx
mov ecx, edi
call fcn.004511cb
test eax, eax
je 0x4a87b8
lea ecx, [esp + 0x54]
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87b8
mov ecx, dword [esp + 0x5c]
mov ebx, eax
cmp dword [esp + 0x58], ecx
mov dword [esp + 8], ecx
jb 0x4a8817
lea ecx, [esp + 0x54]
mov ebp, edx
mov eax, dword [ecx]
mov dword [esp], eax
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87b8
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x10], eax
mov ecx, esi
call fcn.004a7220
mov ecx, dword [esi]
test ecx, ecx
je 0x4a87cb
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 4]
cmp eax, dword [esp + 0x58]
jne 0x4a87b8
mov eax, dword [esp + 0x128]
cmp eax, dword [esp + 0x124]
jne 0x4a87b8
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x44], ecx
mov edx, 0xa0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x14]
mov dword [eax], ebx
mov dword [eax + 4], ebp
and dword [eax + 8], 0
mov ecx, eax
mov ebp, eax
call fcn.004511cb
mov bl, 0xf
test eax, eax
je 0x4a87da
lea ecx, [esp + 0x54]
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
call fcn.004a7389
xor ecx, ecx
cmp dl, 2
sete cl
test al, 1
movzx eax, dl
lea ecx, [ecx + ecx*4 + 0xf]
cmove eax, ecx
cmp al, 0x14
jne 0x4a87d8
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x58]
jne 0x4a87da
push ebp
call fcn.004a7206
pop ecx
mov ebx, eax
cmp al, 0x14
jne 0x4a87da
lea ecx, [esp + 0x14]
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87df
mov ecx, eax
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.004a7dfe
pop ecx
pop edx
mov bl, 0xc
test al, al
jne 0x4a87da
lea ecx, [esp + 0x14]
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87df
mov ebp, eax
mov ebx, edx
lea ecx, [esp + 0x14]
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87df
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x14]
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87df
mov dword [esp + 0x30], ebp
lea ebp, [esp + 0x54]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x14]
mov ebx, eax
mov ecx, ebp
call fcn.00451329
mov eax, dword [ebp + 4]
test eax, eax
je 0x4a87df
cmp byte [esp + 0x54], 0x30
jne 0x4a87df
mov edx, dword [esp]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x190]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
and dword [esp + 0x90], 0
and dword [esp + 0x98], 0
and dword [esp + 0xa0], 0
and dword [esp + 0xa8], 0
lea ecx, [esp + 0x14]
mov edx, 0xa3
call fcn.004511cb
mov cl, 0x10
test eax, eax
mov dword [esp], ecx
je 0x4a87ea
lea ecx, [esp + 0xbc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87e3
lea ecx, [esp + 0xb0]
lea esi, [esp + 0x20]
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
lea ecx, [esp + 0xb0]
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87e3
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
and dword [esp + 0x28], 0
mov ecx, esi
push 6
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87e3
mov ecx, esi
mov ebx, eax
mov ebp, edx
call fcn.004a718f
test al, 1
jne 0x4a86b6
mov byte [esp + 0x10], dl
lea ecx, [esp + 0x20]
push 4
pop edx
call fcn.004511cb
test eax, eax
mov dword [esp + 0xc], edx
je 0x4a87e3
mov esi, eax
mov al, 1
cmp ebp, 3
mov dword [esp + 8], eax
jne 0x4a8710
mov ecx, ebx
push 3
pop edx
push 2
push 0x4f040c
call fcn.0045258e
pop ecx
pop edx
test al, al
je 0x4a8710
movzx eax, byte [ebx + 2]
cmp eax, 0x25
je 0x4a86c0
cmp eax, 0x11
lea ebx, [esp + 0xa8]
je 0x4a86c7
cmp eax, 0x13
lea ebx, [esp + 0x90]
je 0x4a86c7
cmp eax, 0x1e
lea ebx, [esp + 0xa0]
je 0x4a86c7
cmp eax, 0xf
je 0x4a8708
jmp 0x4a8710
cmp dl, 0x14
je 0x4a872c
jmp 0x4a87f3
lea ebx, [esp + 0x98]
cmp dword [ebx], 0
jne 0x4a8813
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
and dword [esp + 0x50], 0
push 0x30
pop edx
call fcn.004511cb
test eax, eax
je 0x4a87e3
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x4c]
jne 0x4a87e3
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
test byte [esp + 0x10], al
jne 0x4a87f7
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x24]
jne 0x4a87e3
mov eax, dword [esp + 0xb8]
lea esi, [esp + 0x20]
cmp eax, dword [esp + 0xb4]
jne 0x4a85f5
mov eax, dword [esp + 0xc4]
cmp eax, dword [esp + 0xc0]
jne 0x4a87ea
lea eax, [esp + 0x59]
mov cl, byte [eax - 1]
mov ebx, dword [eax - 5]
mov ebp, ecx
push 0x57
push eax
push edi
call fcn.004ba8e0
add esp, 0xc
test ebx, ebx
je 0x4a87fe
push 0x57
push edi
lea eax, [esp + 0xd0]
push eax
call fcn.004ba8e0
add esp, 0xc
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
jne 0x4a8806
mov esi, dword [esp + 4]
lea eax, [esi + 5]
push 0x57
lea ecx, [esp + 0xcc]
push ecx
push eax
call fcn.004ba8e0
add esp, 0xc
mov eax, ebp
mov dword [esi], ebx
mov byte [esi + 4], al
jmp 0x4a87c0
xor eax, eax
mov byte [esi + 4], al
and dword [esi], 0
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [esp + 0xcc]
mov esi, dword [esp + 4]
jmp 0x4a87ba
mov ebx, eax
mov byte [esi + 4], bl
jmp 0x4a87bd
xor ebx, ebx
jmp 0x4a87da
mov dword [esp], 0
mov esi, dword [esp + 4]
mov ebx, dword [esp]
jmp 0x4a87da
mov eax, edx
jmp 0x4a87f9
mov al, 0x11
mov dword [esp], eax
jmp 0x4a87ea
mov esi, dword [esp + 4]
mov ebx, ebp
jmp 0x4a87da
mov eax, dword [esp + 4]
mov byte [eax + 4], 0
and dword [eax], 0
jmp 0x4a87c0
mov al, 7
jmp 0x4a87f9
push 0x2b
pop edx
mov ecx, 0x4f022c
push 0x4f0324
call fcn.004c88c0
pop eax
ud2