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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [edx + 0x2c]
xor ecx, ecx
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
cmp eax, ecx
jne 0x5895a1
mov eax, 0x8000ffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 0x20c], ecx
je 0x5895b7
mov eax, 0x800a13a9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
cmp dword [ebp + 0x10], eax
jge 0x5895dd
mov ecx, 0x80
lea edx, [esp + 0x40]
mov word [esp + 0x40], cx
mov dword [esp + 0x48], 0x6341d2c0
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
shl eax, 4
add dword [ebp + 0x14], eax
xor ebx, ebx
sub ebx, 0x6340a9b0
neg ebx
sbb ebx, ebx
mov dword [esp + 0x38], eax
and ebx, 0x13
mov eax, ebx
lea edi, [esp + 0x1c]
call fcn.005098cb
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x589639
lea eax, [ebx + ebx]
push eax
lea ecx, [esi + edi*2]
push 0x6340a9b0
push ecx
call fcn.00503869
add edi, ebx
add esp, 0xc
mov dword [esp + 0x24], edi
test esi, esi
je 0x589635
xor edx, edx
mov word [esi + edi*2], dx
xor ebx, ebx
jmp 0x58963e
mov ebx, 0x8007000e
test ebx, ebx
js 0x589999
mov eax, 1
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x10], eax
jle 0x5896f5
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 1
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0051d5a5
mov ebx, eax
test ebx, ebx
js 0x589999
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x589698
xor eax, eax
jmp 0x58969d
mov eax, dword [ebx - 4]
shr eax, 1
lea ecx, [esp + 0x1c]
call fcn.0050984c
mov ebx, eax
test ebx, ebx
js 0x589999
mov edi, dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
lea eax, [edi - 1]
cmp esi, eax
jge 0x5896db
mov eax, 2
mov ebx, 0x633eb99c
lea ecx, [esp + 0x1c]
call fcn.0050984c
mov ebx, eax
test ebx, ebx
js 0x589999
sub dword [esp + 0x14], 0x10
inc esi
mov dword [esp + 0x18], esi
cmp esi, edi
jl 0x589662
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [edi + 4]
cmp eax, edi
jl 0x58974a
cmp eax, dword [esp + 0x20]
jl 0x589722
lea edi, [esp + 0x1c]
call fcn.005098cb
test eax, eax
je 0x58974a
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, dword [0x6340a9d8]
mov dword [esi + edi*2], ecx
mov edx, dword [0x6340a9dc]
mov dword [esi + edi*2 + 4], edx
add edi, 4
mov dword [esp + 0x24], edi
test esi, esi
je 0x589746
xor eax, eax
mov word [esi + edi*2], ax
xor ebx, ebx
jmp 0x58974f
mov ebx, 0x8007000e
test ebx, ebx
js 0x589999
mov eax, dword [ebp + 0xc]
push 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0051d5a5
mov ebx, eax
test ebx, ebx
js 0x589999
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
test ebx, ebx
jne 0x589785
xor eax, eax
jmp 0x58978a
mov eax, dword [ebx - 4]
shr eax, 1
lea ecx, [esp + 0x1c]
call fcn.0050984c
mov ebx, eax
test ebx, ebx
js 0x589999
mov eax, 2
mov ebx, 0x6340a9e4
lea ecx, [esp + 0x1c]
call fcn.0050984c
mov ebx, eax
test ebx, ebx
js 0x589999
lea esi, [esp + 0x1c]
call fcn.0050bfeb
push 0x2c
xor edi, edi
lea edx, [esp + 0x78]
mov esi, eax
push edi
push edx
mov dword [esp + 0x1c], esi
call fcn.0051740c
add esp, 0xc
lea eax, [esp + 0x74]
push eax
push edi
push edi
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x4c]
push ecx
mov edx, 0x633eb97c
xor ecx, ecx
call fcn.0050612c
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jns 0x58984d
cmp ebx, 0x86664004
jne 0x58983f
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
lea ebx, [esp + 0x84]
call fcn.0053c226
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x74]
call fcn.00505e49
jmp 0x58997e
lea eax, [esp + 0x74]
call fcn.00505e49
mov eax, edi
call fcn.00505da1
test eax, eax
je 0x589877
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, edi
call fcn.005771ca
mov ebx, eax
test ebx, ebx
js 0x58997e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x589887
mov edx, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
jmp 0x58988b
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x20]
cmp dword [ecx + 0x18], 1
jle 0x5898cc
mov ecx, dword [ecx + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x24]
mov ecx, dword [ecx + eax + 4]
add ecx, eax
cmp dword [edi + 0x18], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], 0
jne 0x5898d6
mov ebx, 0x8000ffff
jmp 0x589945
mov ebx, 0x800a0033
jmp 0x58997e
lea esi, [edi + 0x100]
xor edx, edx
cmp dx, word [esi]
jne 0x589928
lea eax, [esp + 0x14]
push eax
mov ebx, edi
call fcn.0050c515
mov ebx, eax
test ebx, ebx
jns 0x589907
mov eax, dword [esp + 0x14]
test eax, eax
je 0x589945
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x589945
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, edi
mov ebx, esi
call fcn.0051b7b6
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov edi, dword [ebp + 0xc]
test ebx, ebx
js 0x58997a
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
xor ebx, ebx
test ebx, ebx
js 0x58997a
push 0x78
call dword [0x633810f4]
add esp, 4
test eax, eax
je 0x58996a
push edi
xor ecx, ecx
lea edx, [esp + 0x64]
lea esi, [esp + 0x54]
call fcn.005886a1
jmp 0x58996c
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x58997a
mov ebx, 0x8007000e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x58998c
push esi
call dword [0x63381128]
add esp, 4
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x589999
call fcn.00505ead
lea esi, [esp + 0x1c]
call fcn.00509821
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10