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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c358
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x34]
mov ecx, ebx
call eax
mov edi, eax
mov al, byte [esi + 0x18]
test al, al
je 0x4a04fb
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x10]
cmp byte [eax + 0x28], 0
je 0x4a04fb
mov ecx, dword [esi + 0x10]
cmp dword [ecx*4 + 0x526b48], 0xa
jne 0x4a04fb
cmp dword [esi + 0x14], 3
je 0x4a04fb
mov edx, dword [ebp - 0x30]
push edx
push ebx
push esi
call fcn.0049fea0
add esp, 0xc
jmp 0x4a09b6
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
push esi
mov dword [ebp - 0x3c], 0
mov ecx, edi
push ebx
jne 0x4a0518
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 0x3c], eax
jmp 0x4a0528
mov edx, dword [eax + 0xc]
call edx
test al, al
je 0x4a0528
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
jle 0x4a09b4
lea esp, [esp]
mov eax, dword [esi + 0x10]
dec eax
cmp eax, 0x11
ja case.default.0x4a054d
jmp dword [eax*4 + 0x4a09e8]
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a056b
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x70]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a0574
mov edx, dword [eax + 0x1c]
push esi
push ebx
mov ecx, edi
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049f720
add esp, 0xc
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a05a9
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x74]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a05b2
mov edx, dword [eax + 0x20]
push esi
push ebx
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0049f7f0
add esp, 0x10
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a05e8
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x70]
push eax
push esi
push ebx
call edx
jmp 0x4a05f1
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push esi
push ebx
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049f830
add esp, 0xc
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a0626
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x74]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a062f
mov edx, dword [eax + 0x20]
push esi
push ebx
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0049f8a0
add esp, 0x10
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a0665
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
push eax
push esi
push ebx
call edx
jmp 0x4a066e
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push esi
push ebx
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049f790
add esp, 0xc
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a06a3
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x7c]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a06ac
mov edx, dword [eax + 0x28]
push esi
push ebx
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0049f7f0
add esp, 0x10
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a06e2
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
push eax
push esi
push ebx
call edx
jmp 0x4a06eb
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push esi
push ebx
call edx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xc]
add eax, eax
add eax, eax
add eax, eax
or eax, 5
push eax
call fcn.0049f490
test al, al
je 0x4a09e4
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.004a2450
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a073b
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x7c]
push eax
push esi
push ebx
call edx
jmp 0x4a0744
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push esi
push ebx
call edx
mov ecx, dword [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0049f900
add esp, 0x10
test al, al
je 0x4a09e4
jmp case.default.0x4a054d
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a077d
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x70]
push eax
push esi
push ebx
call edx
jmp 0x4a06eb
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
jmp 0x4a06e7
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a079e
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x74]
push eax
push esi
push ebx
call edx
jmp 0x4a07a7
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push esi
push ebx
call edx
mov ecx, dword [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0049f900
add esp, 0x10
jmp 0x4a0717
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a07d8
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x80]
push eax
push esi
push ebx
call edx
jmp 0x4a07e1
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push esi
push ebx
call edx
mov ecx, dword [ebp - 0x30]
fstp dword [ebp - 0x38]
mov eax, dword [esi + 0xc]
fld dword [ebp - 0x38]
push ecx
push ecx
fstp dword [esp]
push eax
call fcn.0049f940
add esp, 0xc
jmp 0x4a0717
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a081a
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x84]
push eax
push esi
push ebx
call edx
jmp 0x4a0823
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push esi
push ebx
call edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0xc]
push ecx
sub esp, 8
fstp qword [esp]
push eax
call fcn.0049f990
add esp, 0x10
jmp 0x4a0717
cmp dword [esi + 0x14], 3
mov ecx, edi
jne 0x4a0858
mov eax, dword [ebp - 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x88]
push eax
push esi
push ebx
call edx
jmp 0x4a0861
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push esi
push ebx
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049f9e0
add esp, 0xc
jmp 0x4a0717
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a0891
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x94]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a089a
mov edx, dword [eax + 0x40]
push esi
push ebx
mov ecx, edi
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049fa40
add esp, 0xc
jmp 0x4a0717
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a08ca
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x94]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a08d3
mov edx, dword [eax + 0x40]
push esi
push ebx
mov ecx, edi
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049fa90
add esp, 0xc
jmp 0x4a0717
cmp dword [esi + 0x14], 3
mov eax, dword [edi]
jne 0x4a0903
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x90]
push ecx
push esi
push ebx
mov ecx, edi
call edx
jmp 0x4a090c
mov edx, dword [eax + 0x3c]
push esi
push ebx
mov ecx, edi
call edx
mov edx, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.0049f720
add esp, 0xc
jmp 0x4a0717
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
cmp dword [esi + 0x14], 3
mov dword [ebp - 4], eax
jne 0x4a0955
mov edx, dword [ebp - 0x34]
mov eax, dword [edi]
mov eax, dword [eax + 0x98]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push esi
push ebx
mov ecx, edi
call eax
jmp 0x4a0964
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
mov ecx, edi
call edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call fcn.004a76a0
add esp, 0xc
test al, al
je 0x4a09d2
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4a0992
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00469e1a
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x3c]
jl 0x4a0540
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x10
jb 0x4a09e4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00469e1a
add esp, 4
xor al, al
jmp 0x4a09b6