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

Disassembly:
push 0xffffffffffffffff
push 0x544463
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
or eax, 0xffffffff
push fcn.00509fca
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
push 0x4a1540
mov esi, ecx
push 2
lea eax, [esp + 0xa4]
mov ebp, dword [esi + 0x10]
mov ebx, 0xffff
xor edi, edi
push 0x1c
push eax
mov dword [esp + 0x44], esi
mov word [esp + 0x2a], bx
mov word [esp + 0x28], bx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.004ee6c6
mov dword [esp + 0xd8], edi
mov word [esp + 0x50], di
mov word [esp + 0x68], di
mov edi, dword [esp + 0xe0]
mov eax, 0x494e4458
push 0
mov edx, dword [edi]
push ebp
mov ecx, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], eax
call dword [edx + 0x28]
cmp ebp, dword [esp + 0xe4]
jae 0x4a12d6
jmp 0x4a1151
mov esi, dword [esp + 0x30]
mov eax, dword [edi]
push 0
push ebp
mov ecx, edi
call dword [eax + 0x28]
mov edx, dword [edi]
lea eax, [esp + 0x8c]
push 0xc
push eax
mov ecx, edi
call dword [edx + 0x34]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1e]
push ecx
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
mov ecx, esi
call fcn.004a0ff0
mov ax, word [esp + 0x1e]
cmp ax, bx
je 0x4a122e
mov cx, word [esp + 0x16]
cmp ax, cx
je 0x4a122e
cmp bx, 0xffff
je 0x4a11b8
cmp cx, 0xffff
jne 0x4a12bc
cmp bx, 0xffff
mov esi, 1
jne 0x4a11c6
xor esi, esi
mov edx, dword [edi]
lea ebx, [ebp + 0xb]
push 0
push ebx
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [edi]
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, edi
call dword [eax + 0x34]
mov al, byte [esp + 0x13]
test al, al
jne 0x4a1206
mov edx, dword [edi]
push 0
push ebx
mov ecx, edi
mov byte [esp + 0x1b], 2
call dword [edx + 0x28]
mov eax, dword [edi]
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov dx, word [esp + 0x1e]
mov eax, dword [esp + 0x34]
mov word [esp + esi*2 + 0x14], dx
mov bx, word [esp + 0x14]
mov dword [esp + esi*4 + 0x28], eax
mov dword [esp + esi*4 + 0x3c], ebp
mov dword [esp + esi*4 + 0x20], 1
jmp 0x4a12bc
xor esi, esi
cmp ax, word [esp + 0x16]
jne 0x4a123c
mov esi, 1
mov ecx, dword [esp + 0x34]
lea eax, [esp + esi*4 + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
cmp ecx, eax
je 0x4a12b1
push 0x10
call fcn.0050d138
mov ecx, dword [esp + esi*4 + 0x40]
mov edx, dword [esp + 0x1c]
lea ebx, [esp + esi*4 + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [edx]
lea edx, [esi*8]
mov dword [eax + 4], ecx
lea ecx, [esp + esi*4 + 0x24]
mov dword [esp + 0x3c], ecx
add esp, 4
mov ecx, dword [ecx]
sub edx, esi
mov dword [eax + 0xc], ecx
push eax
lea ecx, [esp + edx*4 + 0x9c]
mov word [eax], 0
call fcn.0050a08e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [ebx], ebp
mov bx, word [esp + 0x14]
mov dword [ecx], eax
mov dword [edx], 1
jmp 0x4a12bc
mov eax, dword [esp + esi*4 + 0x20]
lea esi, [esp + esi*4 + 0x20]
inc eax
mov dword [esi], eax
mov eax, dword [esp + 0x44]
and eax, 0xffff
add ebp, eax
mov eax, dword [esp + 0xe4]
cmp ebp, eax
jb 0x4a114d
lea ebx, [esp + 0x98]
xor esi, esi
mov ebp, dword [esp + esi + 0x20]
test ebp, ebp
jbe 0x4a130f
push 0x10
call fcn.0050d138
mov ecx, dword [esp + esi + 0x40]
mov edx, dword [esp + esi + 0x2c]
add esp, 4
mov dword [eax + 8], ecx
mov ecx, ebx
mov word [eax], 0
push eax
mov dword [eax + 4], edx
mov dword [eax + 0xc], ebp
call fcn.0050a08e
add esi, 4
add ebx, 0x1c
cmp esi, 8
jl 0x4a12df
mov ecx, dword [esp + 0xe4]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xc0]
mov esi, dword [esp + 0xe4]
xor ebx, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + ebx*4 + 0x20]
test eax, eax
jbe 0x4a1482
mov dx, word [esp + ebx*2 + 0x14]
lea ecx, [eax*8]
sub ecx, eax
lea ebp, [ebx + ebx*2]
shl ebp, 3
lea ecx, [ecx + ecx + 0x14]
mov dword [esp + ebp + 0x4c], ecx
add esi, ecx
mov dword [esp + ebp + 0x54], eax
mov dword [esp + 0x38], esi
test ebx, ebx
mov word [esp + ebp + 0x58], dx
jne 0x4a1397
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x4a1397
mov dword [esp + 0x5c], esi
jmp 0x4a139f
mov dword [esp + ebp + 0x5c], 0
mov eax, dword [esp + ebp + 0x48]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.004a0580
mov edx, dword [esp + ebp + 0x54]
lea esi, [esp + eax + 0x80]
push edx
push esi
call fcn.004a0580
add esi, eax
mov ax, word [esp + ebp + 0x60]
push eax
push esi
call fcn.004a05b0
mov ecx, dword [esp + ebp + 0x6c]
add esi, eax
push ecx
push esi
call fcn.004a0580
mov dx, word [esp + ebp + 0x78]
add esi, eax
push edx
push esi
call fcn.004a05b0
add esi, eax
mov eax, dword [esp + ebp + 0x84]
push eax
push esi
call fcn.004a0580
mov edx, dword [edi]
add esp, 0x30
lea eax, [esp + 0x78]
mov ecx, edi
push 0x14
push eax
call dword [edx + 0x38]
lea ecx, [ebx*8]
sub ecx, ebx
mov ebx, dword [esp + ecx*4 + 0x9c]
test ebx, ebx
je 0x4a147a
mov eax, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [esp + 0x78]
mov dx, word [esi]
push edx
push eax
call fcn.004a05b0
mov ecx, dword [esi + 4]
lea ebp, [esp + eax + 0x80]
push ecx
push ebp
call fcn.004a0580
mov edx, dword [esi + 8]
add ebp, eax
push edx
push ebp
call fcn.004a0580
add ebp, eax
mov eax, dword [esi + 0xc]
push eax
push ebp
call fcn.004a0580
mov edx, dword [edi]
add esp, 0x20
lea eax, [esp + 0x78]
mov ecx, edi
push 0xe
push eax
call dword [edx + 0x38]
push esi
call fcn.0050d161
add esp, 4
test ebx, ebx
jne 0x4a141e
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
lea ecx, [ebx*8]
sub ecx, ebx
lea ecx, [esp + ecx*4 + 0x98]
call fcn.00509faa
inc ebx
cmp ebx, 2
mov dword [esp + 0x18], ebx
jl 0x4a134e
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x30]
cmp esi, eax
jbe 0x4a14ba
mov edx, dword [ecx + 0x68]
mov dword [edx + 0x40], eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4a14f9
mov eax, dword [ecx + 0x68]
mov dx, word [esp + 0x14]
cmp word [eax + 0x9e], dx
jne 0x4a14e5
mov edx, dword [esp + 0x28]
mov dword [eax + 0xb8], edx
mov eax, dword [ecx + 0x68]
mov ecx, dword [esp + 0x2c]
jmp 0x4a14f6
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xb8], edx
mov eax, dword [ecx + 0x68]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x70], ecx
push fcn.00509fca
push 2
lea edx, [esp + 0xa0]
push 0x1c
push edx
mov dword [esp + 0xe8], 0xffffffff
call fcn.004ee5d2
mov ecx, dword [esp + 0xd0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret 8