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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [ecx + 0x50]
push ebx
mov dword [esp + 0xa0], edx
xor edx, edx
xor ebx, ebx
cmp eax, ebx
setne dl
push esi
push edi
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add edx, 2
mov edi, edx
mov dword [esp + 0x40], edi
mov eax, dword [0x10075e30]
cmp eax, ebx
je 0x4a773f
mov eax, dword [eax + 0x4fc]
push ebx
push ebx
push 1
lea ecx, [esp + 0xb4]
push ecx
push edi
call eax
jmp 0x4a7751
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb0]
push edx
push edi
call dword [0x1005f140]
cmp eax, ebx
jne 0x4a7c7f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [esp + 0xb8], ebx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0xbc], ebx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov byte [esp + 0x65], bl
mov dword [esp + 0x60], eax
call dword [0x1005f060]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov esi, eax
cmp esi, edx
jne 0x4a77b9
mov byte [esp + 0x65], bl
mov al, 1
jmp 0x4a77ed
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4a77d4
mov edx, dword [esp + 0x54]
push ebx
push esi
push edx
call dword [0x1005f120]
test eax, eax
je 0x4a77e2
push esi
lea eax, [esp + 0x50]
call fcn.0049b460
test al, al
je 0x4a77eb
mov byte [esp + 0x65], 1
mov al, 1
jmp 0x4a77ed
xor al, al
mov byte [esp + 0x64], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
call fcn.004a3200
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jne 0x4a7810
cmp edx, ebx
je 0x4a7c3f
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x9c]
push edx
push ecx
call fcn.004a9e80
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [eax + 0xc]
jne 0x4a7846
cmp edi, ebx
je 0x4a7b2d
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push edi
push esi
call eax
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push edi
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call eax
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
push edi
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x1005f200]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0xa0], ebx
jne 0x4a78a0
cmp dword [esp + 0xa4], ebx
je 0x4a78cc
mov esi, dword [esp + 0x98]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4a78cc
call fcn.004a8830
mov eax, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esi + 8]
push eax
call edx
lea esi, [edi + 0x18]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x98], ebx
cmp dword [esi], ebx
je 0x4a7b40
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x24]
push ecx
push eax
call fcn.004a9f80
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esi]
je 0x4a7c9f
mov eax, dword [ebp + 8]
lea edx, [esp + 0x94]
push edx
push esi
add eax, 0x5c
push eax
call fcn.004a8e00
test eax, eax
je 0x4a7bf0
cmp dword [0x10075ef0], ebx
mov edi, dword [esp + 0x94]
je 0x4a7a30
push 0x100
xor eax, eax
mov dword [esp + 0x34], 0xff
call fcn.004b15e0
add esp, 4
push 0x1006ab40
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov byte [eax], bl
call fcn.00498280
lea ecx, [esp + 0xd0]
push ecx
mov eax, edi
call fcn.00489a90
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x80]
push eax
call fcn.00498280
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x4a79bd
call fcn.004b16a0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
push 0x1006ab4c
lea esi, [esp + 0x2c]
call fcn.00498280
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
add eax, 0x18
push ecx
lea edx, [esp + 0xe4]
push 0x1006816c
push edx
call dword [0x1005f22c]
add esp, 0xc
lea eax, [esp + 0xe0]
push eax
call fcn.00498280
push 0x1006ab28
call fcn.00498280
mov ecx, esi
push ecx
call fcn.0049ce70
mov eax, dword [esp + 0xd4]
cmp eax, ebx
je 0x4a7a30
call fcn.004b16a0
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
push edi
call dword [0x1005f0b4]
cmp dword [0x10075ef0], ebx
je 0x4a7bec
push 0x100
xor eax, eax
mov dword [esp + 0x40], 0xff
call fcn.004b15e0
add esp, 4
push 0x1006ab40
lea esi, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov byte [eax], bl
call fcn.00498280
lea edx, [esp + 0xc0]
push edx
mov eax, edi
call fcn.00489a90
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x68]
push eax
call fcn.00498280
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x4a7ab1
call fcn.004b16a0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
push 0x1006ab4c
lea esi, [esp + 0x38]
call fcn.00498280
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
add eax, 0x18
push ecx
lea edx, [esp + 0x1e4]
push 0x1006816c
push edx
call dword [0x1005f22c]
add esp, 0xc
lea eax, [esp + 0x1e0]
push eax
call fcn.00498280
push 0x1006ab34
call fcn.00498280
mov ecx, esi
push ecx
call fcn.0049ce70
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0x4a7bec
call fcn.004b16a0
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
jmp 0x4a7bec
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
jmp 0x4a788e
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x58]
test edx, edx
jne 0x4a7be2
mov eax, dword [edi + 0x54]
push eax
call dword [0x1005f0b4]
push 0x18
call fcn.004b1530
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a7bde
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x1006ac10
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [0x1005f1f4]
mov dword [esi + 0x14], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea edi, [esi + 0x10]
push edi
push ebx
push esi
push 0x1001fb00
push ebx
push ebx
call dword [0x1005f054]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
mov dword [esp + 0x4c], esi
call ecx
mov eax, dword [esi + 8]
lea edx, [esp + 0x48]
push edx
push edi
add eax, 0x9c
push eax
call fcn.004a9720
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
mov dword [esp + 0x4c], ebx
call ecx
jmp 0x4a7bec
xor esi, esi
jmp 0x4a7b92
mov edx, dword [edi + 0x54]
push edx
call dword [0x1005f0b4]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x18], ebx
jne 0x4a7bfc
cmp dword [esp + 0x1c], ebx
je 0x4a7c23
push edi
call dword [0x1005f1f8]
test eax, eax
jne 0x4a7c23
mov esi, edi
call fcn.004a8830
mov edx, dword [edi + 0xc]
mov ecx, dword [0x10075eb4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [edi + 8]
push edx
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov edx, dword [esp + 0x24]
jne 0x4a7810
cmp edx, ebx
jne 0x4a7810
mov edi, dword [esp + 0x40]
cmp byte [esp + 0x65], bl
je 0x4a771f
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 8]
push ebx
push ecx
call dword [0x1005f124]
mov edx, dword [esi + 0xc]
test edx, edx
lea eax, [esi + 0xc]
jle 0x4a771f
push eax
call dword [0x1005f1f8]
mov eax, dword [esi + 0x10]
push ebx
push 1
push eax
call dword [0x1005f144]
jmp 0x4a771f
cmp eax, 1
je 0x4a7d13
cmp eax, 2
jne 0x4a771f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x18], ebx
jne 0x4a7cab
cmp dword [esp + 0x1c], ebx
je 0x4a7cd2
push edi
call dword [0x1005f1f8]
test eax, eax
jne 0x4a7cd2
mov esi, edi
call fcn.004a8830
mov eax, dword [edi + 0xc]
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [edi + 8]
push eax
call edx
cmp byte [esp + 0x65], bl
je 0x4a7c91
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 8]
push ebx
push eax
call dword [0x1005f124]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x4a7c91
push eax
call dword [0x1005f1f8]
mov edx, dword [esi + 0x10]
push ebx
push 1
push edx
call dword [0x1005f144]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
add edi, 0x9c
mov eax, edi
call fcn.004c9200
cmp eax, ebx
mov dword [esp + 0x44], eax
je 0x4a7d8a
jmp 0x4a7d30
lea eax, [esp + 0x44]
push eax
mov eax, edi
call fcn.004df780
mov esi, dword [eax]
cmp esi, ebx
je 0x4a7d4a
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
cmp dword [esi + 0xc], ebx
je 0x4a7d7c
mov eax, dword [esi + 0x14]
push eax
call dword [0x1005f0b4]
mov ecx, dword [0x10075e30]
cmp ecx, ebx
mov eax, dword [esi + 0xc]
je 0x4a7d73
mov ecx, dword [ecx + 0x4d4]
push ebx
push ebx
push eax
call ecx
jmp 0x4a7d7c
push 0xffffffffffffffff
push eax
call dword [0x1005f13c]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
cmp dword [esp + 0x44], ebx
jne 0x4a7d30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8