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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xc], 1
jne 0x5a9c7a
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x5a98ef
lea ecx, [esi + 0x14]
call fcn.0068f980
sub eax, dword [esi + 0x10]
cmp eax, edi
jge 0x5a98fb
sub edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x5a9c7c
jmp 0x5a98fd
xor ebx, ebx
mov edi, dword [esi + 0x24]
lea ecx, [esp + 0x14]
call fcn.0068f980
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x40]
cmp eax, 4
mov dword [esi + 0x18], edi
jae 0x5a992a
mov ebp, dword [eax*4 + 0x7d0258]
mov eax, dword [esi + 0x38]
jmp 0x5a9932
mov ebp, dword [esi + 0x38]
mov eax, dword [0x7d0264]
mov ecx, dword [esi + 0x28]
or ebp, eax
mov eax, dword [esi + 0x1c]
movsx edx, word [eax + 6]
cmp ecx, edx
jae 0x5a9978
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8 + 8]
cmp eax, ebx
je 0x5a9978
movsx edx, word [eax + 6]
movsx ecx, word [eax + 4]
push edx
push ecx
movsx edx, word [eax + 2]
movsx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.0042bcd0
mov edx, eax
mov eax, dword [edx]
mov edi, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
jmp 0x5a998f
mov eax, dword [0xa59400]
mov edi, dword [0xa59404]
mov ecx, dword [0xa59408]
mov edx, dword [0xa5940c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 8]
add ecx, eax
add edi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], ecx
test ebp, 0x200
mov dword [esp + 0x24], edi
je 0x5a99da
mov ebp, dword [esi + 0x1c]
movsx eax, word [ebp + 2]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov dword [esp + 0x20], ecx
movsx eax, word [ebp + 4]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov dword [esp + 0x24], edi
mov ebp, dword [esp + 0x44]
mov edx, dword [0x821c78]
push 1
lea ecx, [esp + 0x24]
mov eax, dword [ebp]
push ebx
push ecx
lea ecx, [esp + 0x2c]
push edx
push ecx
mov ecx, ebp
call dword [eax + 8]
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x5a9a3d
mov dword [esp + 0x44], esi
mov edx, dword [ecx]
lea eax, [esp + 0x44]
push eax
call dword [edx + 0x10]
mov ebx, eax
mov eax, dword [esi + 0x44]
xor edi, edi
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x5a9a3b
cmp edi, ebx
je 0x5a9a32
mov ecx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
push ebp
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esi + 0x44]
inc edi
cmp edi, dword [eax + 0x10]
jl 0x5a9a1d
xor ebx, ebx
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
inc edx
mov eax, edx
mov dword [esi + 0x28], edx
cmp eax, ecx
jbe 0x5a9a75
mov al, byte [esi + 0x34]
test al, al
jne 0x5a9a6f
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov al, 1
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x28], ecx
mov edx, dword [esi + 0x40]
inc edx
mov eax, edx
mov dword [esi + 0x40], edx
cmp eax, 4
jae 0x5a9a8f
mov edi, dword [eax*4 + 0x7d0258]
mov eax, dword [esi + 0x38]
jmp 0x5a9a97
mov edi, dword [esi + 0x38]
mov eax, dword [0x7d0264]
or edi, eax
xor ecx, ecx
mov edx, dword [esi + 4]
xor eax, eax
push ecx
push eax
mov eax, dword [ebp]
push ebx
push ebx
push 0x3e8
push ebx
push ebx
push ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 8]
push edi
push ecx
mov ecx, ebp
mov dword [esp + 0x3c], edx
call dword [eax + 0x78]
mov ecx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.0049ea80
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x28]
movsx edx, word [ecx + 6]
cmp eax, edx
jae 0x5a9b0d
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8 + 8]
cmp eax, ebx
je 0x5a9b0d
movsx ecx, word [eax]
movsx ebx, word [eax + 6]
movsx edx, word [eax + 2]
movsx ebp, word [eax + 4]
mov eax, ecx
mov dword [esp + 0x1c], ebx
jmp 0x5a9b28
mov ecx, dword [0xa5940c]
mov eax, dword [0xa59400]
mov edx, dword [0xa59404]
mov ebp, dword [0xa59408]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
mov ebx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], edx
mov eax, dword [esi + 4]
mov ebp, dword [ecx]
mov ebx, dword [ecx + 4]
add ebp, eax
mov dword [ecx], ebp
mov edx, dword [esi + 8]
add ebx, edx
test edi, 0x200
mov dword [ecx + 4], ebx
je 0x5a9b80
mov eax, dword [esi + 0x1c]
movsx eax, word [eax + 2]
cdq
sub eax, edx
sar eax, 1
neg eax
add ebp, eax
mov dword [ecx], ebp
mov edx, dword [esi + 0x1c]
movsx eax, word [edx + 4]
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
neg eax
add edx, eax
mov dword [ecx + 4], edx
mov eax, dword [ecx + 8]
test eax, eax
jle 0x5a9c53
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x5a9c53
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x5a9c2f
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x5a9c2f
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x18], ebx
mov edi, dword [esi + 0xc]
mov esi, dword [esp + 0x20]
cmp eax, esi
jle 0x5a9bd1
sub eax, esi
add ebx, eax
mov eax, esi
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jle 0x5a9bdf
sub edx, ebp
add edi, edx
mov edx, ebp
mov ebp, dword [esp + 0x28]
add ebx, eax
add ebp, esi
cmp ebx, ebp
jge 0x5a9bf9
mov ebx, dword [esp + 0x28]
sub ebx, eax
lea esi, [ebx + esi + 1]
mov dword [esp + 0x18], esi
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
lea ebx, [edi + edx]
add ebp, esi
cmp ebx, ebp
jge 0x5a9c14
mov edi, dword [esp + 0x2c]
sub edi, edx
lea edi, [edi + esi + 1]
mov esi, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 8
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret 8
xor ebx, ebx
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
xor al, al
pop ebx
add esp, 0x30
ret 8