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

Disassembly:
push 0xffffffffffffffff
push 0x4c74d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x510a50]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x510a50]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x78]
mov eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ecx
lea esi, [edi + 0x20]
cmp eax, edx
je 0x4a75ce
cmp dword [edi + 8], 0
mov ebp, dword [ecx + 0x10]
mov bl, byte [esp + 0x80]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], 0
jbe 0x4a7232
jmp 0x4a7180
cmp word [esi], 0
mov edx, dword [esp + 0x14]
mov edi, edx
jne 0x4a71c0
movzx ecx, word [edx]
test bl, bl
je 0x4a71a2
mov eax, dword [ebp]
mov edx, dword [eax]
call fcn.004c2e80
movzx eax, ax
jmp 0x4a71a4
mov eax, ecx
movzx ecx, word [esi]
cmp ax, cx
je 0x4a7250
test cx, cx
jne 0x4a721c
add esi, 2
cmp word [esi], 0
je 0x4a71b5
jmp 0x4a721c
cmp edi, dword [esp + 0x20]
je 0x4a7204
movzx ecx, word [edi]
test bl, bl
je 0x4a71e0
mov eax, dword [ebp]
mov edx, dword [eax]
call fcn.004c2e80
mov edx, dword [esp + 0x14]
movzx eax, ax
jmp 0x4a71e2
mov eax, ecx
cmp ax, word [esi]
jne 0x4a7204
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x4a71c0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1c], 0
je 0x4a7265
mov eax, edx
jmp 0x4a75ce
cmp word [esi], 0
je 0x4a71f3
lea ebx, [ebx]
add esi, 2
cmp word [esi], 0
jne 0x4a7210
add esi, 2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 8]
jb 0x4a7180
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx]
test bl, bl
je 0x4a7277
mov eax, dword [ebp]
mov edx, dword [eax]
call fcn.004c2e80
movzx ebx, ax
mov dword [esp + 0x20], ebx
jmp 0x4a727f
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0x1c], 0
mov eax, edi
jne 0x4a75ce
jmp 0x4a75cb
lea eax, [edx + 2]
cmp edi, edx
je 0x4a75ce
mov eax, edi
jmp 0x4a75ce
mov edx, ecx
mov dword [esp + 0x20], edx
mov ebx, ecx
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x4a7295
cmp dword [edi + 0x10], ecx
je 0x4a7568
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ecx
mov word [esp + 0x2c], dx
mov dword [esp + 0x70], ecx
cmp eax, ecx
je 0x4a743b
mov eax, dword [esp + 0x28]
test dword [eax + 0x18], 0x200000
jne 0x4a72d8
mov edi, 1
xor ecx, ecx
mov word [esp + 0x2c], bx
mov dword [esp + 0x3c], edi
mov word [esp + 0x2e], cx
jmp 0x4a7326
xor edx, edx
lea eax, [esp + 0x1a]
push eax
lea ecx, [esp + 0x1c]
mov word [esp + 0x1e], dx
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
mov word [esp + 0x24], bx
call fcn.004a2190
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 1
call fcn.00409190
cmp dword [esp + 0x5c], 8
mov byte [esp + 0x70], 0
jb 0x4a7322
mov eax, dword [esp + 0x48]
push eax
call fcn.00460bb0
add esp, 4
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x4a743b
xor ecx, ecx
cmp cx, word [esi]
jne 0x4a7359
test edi, edi
je 0x4a7390
cmp edi, 1
jne 0x4a7359
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4a7354
lea eax, [esp + 0x2c]
cmp word [eax], cx
je 0x4a7390
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7360
sub eax, edx
sar eax, 1
push eax
push esi
push edi
push 0
lea ecx, [esp + 0x3c]
call fcn.0040a540
test eax, eax
js 0x4a7410
mov edi, dword [esp + 0x3c]
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x4a7390
add esi, 2
xor edx, edx
cmp dx, word [esi]
jne 0x4a73c0
test edi, edi
je 0x4a73e6
cmp edi, 1
jne 0x4a73c0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4a73bb
lea eax, [esp + 0x2c]
cmp word [eax], dx
je 0x4a73e6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a73c5
sub eax, edx
sar eax, 1
push eax
push esi
push edi
push 0
lea ecx, [esp + 0x3c]
call fcn.0040a540
test eax, eax
jg 0x4a7420
cmp byte [ebp + 0x1c], 0
mov esi, dword [esp + 0x14]
jne 0x4a73f3
add esi, 2
cmp dword [esp + 0x40], 8
jb 0x4a7407
mov eax, dword [esp + 0x2c]
push eax
call fcn.00460bb0
add esp, 4
mov eax, esi
jmp 0x4a75ce
add esi, 2
cmp word [esi], 0
jne 0x4a7410
add esi, 2
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x4a7420
inc ebx
add esi, 2
cmp ebx, dword [ebp + 0xc]
jae 0x4a743b
mov edi, dword [esp + 0x3c]
jmp 0x4a7335
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x10], 0
je 0x4a7529
mov dx, word [esp + 0x20]
xor eax, eax
lea ecx, [esp + 0x1a]
push ecx
mov ecx, dword [esp + 0x28]
mov word [esp + 0x1c], dx
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
push edx
lea eax, [esp + 0x50]
push eax
call fcn.004a6760
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 2
call fcn.00409190
cmp dword [esp + 0x5c], 8
mov byte [esp + 0x70], 0
jb 0x4a749a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00460bb0
add esp, 4
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], dx
cmp dword [ebx + 0x10], ebp
jbe 0x4a7529
jmp 0x4a74c0
mov edi, dword [esp + 0x3c]
xor eax, eax
cmp ax, word [esi]
jne 0x4a74f1
test edi, edi
je 0x4a7584
cmp edi, 1
jne 0x4a74f1
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4a74e7
lea eax, [esp + 0x2c]
cmp word [eax], 0
je 0x4a7584
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a74f6
sub eax, edx
sar eax, 1
push eax
push esi
push edi
push 0
lea ecx, [esp + 0x3c]
call fcn.0040a540
test eax, eax
je 0x4a7584
add esi, 2
cmp word [esi], 0
jne 0x4a7517
inc ebp
add esi, 2
cmp ebp, dword [ebx + 0x10]
jb 0x4a74c0
cmp dword [esp + 0x40], 8
mov dword [esp + 0x70], 0xffffffff
jb 0x4a7545
mov edx, dword [esp + 0x2c]
push edx
call fcn.00460bb0
add esp, 4
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov ecx, dword [edi + 0x14]
push ecx
push ebx
mov ecx, ebp
call fcn.004a0cd0
cmp al, 1
jne 0x4a75ad
cmp byte [edi + 0x1c], 0
mov eax, dword [esp + 0x14]
jne 0x4a75ce
jmp 0x4a75cb
cmp byte [ebx + 0x1c], 0
mov esi, dword [esp + 0x14]
jne 0x4a7591
add esi, 2
cmp dword [esp + 0x40], 8
jb 0x4a7407
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00460bb0
add esp, 4
mov eax, esi
jmp 0x4a75ce
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4a75c1
push eax
push ebx
mov ecx, ebp
call fcn.004a0cd0
test al, al
je 0x4a7578
cmp byte [edi + 0x1c], 0
mov eax, dword [esp + 0x14]
je 0x4a75ce
add eax, 2
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004840ae
add esp, 0x60
ret 0xc