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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x1d], dl
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x588398
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1e], 0
cmp byte [ebp - 0x1d], 0
jne 0x587edb
mov eax, dword [ebp - 0x1c]
test byte [eax + 0x1c], 0x10
jne 0x588360
mov eax, dword [ebp - 0x1c]
call fcn.0058895c
test al, al
je 0x588360
lea eax, [ebp - 4]
mov edx, dword [0x7127ac]
call fcn.00407684
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x588359
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4456c4]
call fcn.00454060
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4456c4]
call fcn.00454060
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4456c4]
call fcn.00454060
mov dword [ebp - 0x24], eax
mov dl, 1
mov eax, dword [0x4456c4]
call fcn.00454060
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
call fcn.00586b74
dec eax
test eax, eax
jl 0x58807b
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
cmp byte [eax + 0x42], 0
je 0x58806f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
mov eax, dword [eax + 0x38]
mov edx, 0x5883b4
call fcn.00408458
je 0x58806f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
cmp dword [eax + 0x38], 0
je 0x58806f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
mov eax, dword [eax + 0x38]
lea edx, [ebp - 0x54]
call fcn.0058b12c
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x38]
call fcn.00422a54
cmp dword [ebp - 0x38], 0
jne 0x587ffd
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
mov ecx, dword [eax + 0x38]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x64]
jmp 0x58806f
mov edx, dword [0x7127ac]
mov eax, dword [ebp - 0x38]
call fcn.0042baec
test eax, eax
je 0x58806f
push ebp
mov eax, dword [ebp - 0x38]
call fcn.00587bc4
pop ecx
test al, al
jne 0x58806f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
add eax, 0x38
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
mov eax, dword [eax + 0x38]
lea edx, [ebp - 0x58]
call fcn.0058afec
mov edx, dword [ebp - 0x58]
pop eax
call fcn.0040763c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00586ba0
mov ecx, dword [eax + 0x38]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x64]
inc dword [ebp - 0x28]
dec dword [ebp - 0x44]
jne 0x587f68
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00407684
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x58822c
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x40]
call fcn.00407684
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x5881b2
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x30], 1
jmp 0x588194
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp word [eax + edx*2 - 2], 0xd800
jb 0x588112
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
cmp word [eax + edx*2 - 2], 0xdfff
ja 0x588112
inc dword [ebp - 0x30]
jmp 0x588191
lea eax, [ebp - 0x5c]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
call fcn.00408490
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x38]
call fcn.00422a54
push ebp
mov eax, dword [ebp - 0x38]
call fcn.00587bc4
pop ecx
test al, al
je 0x588191
mov eax, dword [0x71883c]
cmp byte [eax + 0xc], 0
je 0x58815c
push ebp
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
call fcn.00587c98
pop ecx
jmp 0x58816c
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov eax, 0x5883c4
call fcn.0040853c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x5881a5
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
call fcn.00407754
cmp eax, dword [ebp - 0x30]
jge 0x5880ef
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xffffffff
jne 0x5880d5
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x10]
jle 0x5881c6
push ebp
call fcn.00587c08
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x58822c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x588220
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ecx, eax
dec ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x78]
inc dword [ebp - 0x28]
dec dword [ebp - 0x48]
jne 0x5881ea
inc dword [ebp - 0x2c]
dec dword [ebp - 0x44]
jne 0x5880a2
cmp dword [ebp - 0x10], 0
jne 0x588239
push ebp
call fcn.00587c08
pop ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
setg byte [ebp - 0x1e]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x58832b
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x71883c]
cmp byte [eax + 0xc], 0
je 0x588309
mov edx, dword [ebp - 0x3c]
mov eax, 0x5883c4
call fcn.0042baec
test eax, eax
jne 0x588309
cmp dword [ebp - 0x18], 0
je 0x588309
mov edx, dword [ebp - 0x3c]
mov eax, 0x5883c4
call fcn.0042baec
test eax, eax
jne 0x588309
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x5882bf
mov eax, dword [ebp - 0x4c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
push ebp
lea eax, [ebp - 0x60]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x18]
call fcn.00408490
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x3c]
xor ecx, ecx
call fcn.00587c98
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x5882f9
mov eax, dword [ebp - 0x50]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [ebp - 0x50]
call fcn.004084d8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
add eax, 0x38
mov edx, dword [ebp - 0x3c]
call fcn.0040763c
inc dword [ebp - 0x28]
dec dword [ebp - 0x44]
jne 0x588263
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588360
mov eax, dword [ebp - 8]
call fcn.0040554c
mov eax, dword [ebp - 0x24]
call fcn.0040554c
mov eax, dword [ebp - 0x14]
call fcn.0040554c
mov eax, dword [ebp - 0xc]
call fcn.0040554c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58839f
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.004072bc
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004072bc
lea eax, [ebp - 0x18]
call fcn.0040725c
lea eax, [ebp - 4]
call fcn.0040725c
ret