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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ebd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x558384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x7c], eax
jbe 0x4a22d0
jmp 0x4a2170
cmp byte [ebx + 0x60], 0
lea ecx, [eax*4]
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 8]
mov esi, dword [ecx + eax]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x20], esi
je 0x4a2198
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
jmp 0x4a21a2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov edi, dword [esi + 0x74]
test edi, edi
je 0x4a21e4
lea esp, [esp]
mov eax, dword [esi + 0x70]
dec edi
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x4a21e0
mov ecx, dword [ebx]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4a21ce
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 4
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004bcf17
add esp, 8
test edi, edi
jne 0x4a21b0
mov ebx, dword [ebp - 0x1c]
mov dword [esi + 0x74], 0
test ebx, ebx
je 0x4a222b
lea ecx, [esi + 0x70]
call fcn.0049f4a0
push 4
call fcn.004bcee7
mov edx, eax
add esp, 4
mov dword [ebp - 0x28], edx
test edx, edx
je 0x4a2215
mov dword [edx], 0
jmp 0x4a2217
xor edx, edx
mov ecx, dword [esi + 0x74]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], edx
sub ebx, 1
jne 0x4a21f2
mov esi, dword [ebp - 0x20]
mov edi, dword [esi + 0x80]
test edi, edi
je 0x4a226c
mov eax, dword [esi + 0x7c]
dec edi
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x4a2268
mov ecx, dword [ebx]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4a2256
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 4
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004bcf17
add esp, 8
test edi, edi
jne 0x4a2238
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x80], 0
test ebx, ebx
je 0x4a22bd
lea ecx, [ecx]
lea ecx, [esi + 0x7c]
call fcn.0049f4a0
push 4
call fcn.004bcee7
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a22a1
mov dword [eax], 0
jmp 0x4a22a3
xor eax, eax
mov edx, dword [esi + 0x80]
lea ecx, [edx + 1]
mov dword [esi + 0x80], ecx
mov ecx, dword [esi + 0x7c]
mov dword [ecx + edx*4], eax
sub ebx, 1
jne 0x4a2280
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x7c]
jb 0x4a2170
xor edi, edi
cmp dword [ebx + 0x18], edi
jbe 0x4a2419
jmp 0x4a22e0
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + edi*8]
lea ecx, [eax + edi*8]
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx + 0x30]
sub esi, dword [eax + edx*4]
mov al, byte [ebx + 0x60]
test al, al
je 0x4a2307
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov al, byte [ebx + 0x60]
jmp 0x4a230d
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 4]
xor ecx, ecx
test al, al
movzx eax, al
setne cl
dec ecx
and ecx, esi
neg eax
mov dword [ebp - 0x24], ecx
sbb eax, eax
and eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebp - 0x20]
mov ecx, dword [eax + edi*4]
lea eax, [edx*4]
mov edx, dword [ebx + 0x78]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + eax]
mov eax, dword [eax + 0x7c]
mov esi, dword [eax + esi*4]
mov eax, dword [ebp - 0x1c]
push esi
mov esi, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0x70]
push dword [eax + esi*4]
call fcn.004a4f10
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x78]
mov byte [ebp - 4], 3
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4a2386
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x517804
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x78]
mov eax, dword [ecx + eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4a23a7
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x517804
push ecx
call dword [eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4a23e6
test ecx, ecx
je 0x4a23e6
mov ecx, dword [eax]
push 0x80000
push esi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push 0x80000
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4a23f7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 5
test eax, eax
je 0x4a2408
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
mov dword [ebp - 4], 0xffffffff
cmp edi, dword [ebx + 0x18]
jb 0x4a22e0
cmp byte [ebx + 0x60], 0
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x78]
mov edi, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
je 0x4a2432
mov esi, dword [edi]
mov eax, dword [eax + 0x70]
jmp 0x4a243a
mov esi, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
mov esi, dword [esi]
mov eax, dword [eax]
mov dword [ebp + 8], eax
test esi, esi
je 0x4a244c
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a245b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], esi
mov dword [ebp - 0x20], ecx
cmp dword [ebx + 0x24], ecx
jbe 0x4a24d8
mov esi, dword [ebp + 0xc]
sub esi, edi
mov dword [ebp + 0xc], esi
nop
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + edx*4]
lea ecx, [eax*4]
mov eax, dword [ebx + 0x30]
sub edx, dword [eax + ecx]
cmp byte [ebx + 0x60], 0
mov eax, dword [ebx + 0x78]
mov eax, dword [ecx + eax]
je 0x4a249d
mov esi, dword [esi + edi]
mov eax, dword [eax + 0x7c]
jmp 0x4a24a2
mov esi, dword [edi]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + edx*4]
mov dword [ebp + 8], eax
test esi, esi
je 0x4a24b5
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a24c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add edi, 4
inc ecx
mov dword [eax], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebx + 0x24]
jb 0x4a2470
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8