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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0xf4]
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 8], 0xb28741
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0090e610
mov eax, dword [esp + 0x6c]
sub eax, 0x80000000
or eax, dword [esp + 0x68]
je 0x58365e
mov eax, dword [esp + 0x64]
sub eax, 0x80000000
or eax, dword [esp + 0x60]
jne 0x582f76
mov eax, dword [esp + 0xd0]
mov esi, 0x400
add eax, 0x10
mov dword [esp], eax
call fcn.0058ace0
mov edi, eax
add eax, 0xffffffff
mov ebp, edx
adc edx, 0xffffffff
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
lea esi, [esi]
mov ecx, dword [esp + 0x98]
mov edx, esi
mov ebx, dword [esp + 0x9c]
sar edx, 0x1f
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
sub ecx, esi
sbb ebx, edx
mov dword [esp + 0x98], ecx
add ecx, esi
mov dword [esp + 0x9c], ebx
adc ebx, edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [esp + 0x110]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x64]
sub eax, 0x80000000
or eax, dword [esp + 0x60]
jne 0x582ec0
add esi, esi
mov edx, esi
sar edx, 0x1f
cmp edx, dword [esp + 0x9c]
jl 0x582e20
jle 0x583117
add esp, 0xbc
mov eax, 0xffffffff
pop ebx
mov edx, 0xffffffff
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x98]
lea ebx, [esp + 0xa8]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
add eax, 1
adc edx, 0
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [esp + 0x110]
mov ecx, edx
mov edx, eax
lea eax, [ecx - 0x80000000]
or eax, edx
je 0x582f60
mov esi, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
cmp ebp, esi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
jg 0x582ec0
jl 0x582f60
cmp edi, ebx
ja 0x582ec0
lea esi, [esi]
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x64]
cmp dword [esp + 0x6c], ebx
jg 0x582ea5
jge 0x5835d3
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
xor edx, dword [esp + 0x64]
xor eax, dword [esp + 0x60]
or edx, eax
je 0x583643
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
xor ebp, ebp
cmp dword [esp + 0x74], edi
mov eax, esi
mov edx, edi
jg 0x583140
jge 0x583130
test byte [esp + 0x108], 1
jne 0x5835e6
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0xd4]
lea edi, [esp + 0xa0]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], edi
mov dword [esp + 0xa4], edx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp], eax
call dword [esp + 0x110]
mov ecx, dword [esp + 0xd0]
add dword [esp + 0xa0], 1
adc dword [esp + 0xa4], 0
mov dword [esp], ecx
mov dword [esp + 8], edi
mov esi, edx
mov edx, dword [esp + 0xd4]
mov ebx, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 4], edx
call dword [esp + 0x110]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 8], 0xb28830
mov dword [esp + 4], 2
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 0xc], eax
mov dword [esp], edx
call fcn.0090e610
mov eax, dword [esp + 0x10c]
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], ebx
mov dword [eax], ecx
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, dword [esp + 0x98]
jbe 0x582e20
jmp 0x582ea5
cmp dword [esp + 0x70], esi
jbe 0x582fc6
lea esi, [esi]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0xb28758
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0090e610
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
cmp dword [esp + 0x74], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
jl 0x5831e6
jle 0x5831e0
mov dword [esp + 8], 0x4a6
mov dword [esp + 4], 0xb28795
mov dword [esp], 0xb2879d
call sub.msvcrt.dll__assert
lea esi, [esi]
cmp dword [esp + 0x70], eax
ja 0x5831c1
test ebp, ebp
je 0x583467
cmp ebp, 1
je 0x583596
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
add eax, 1
adc edx, 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov ecx, dword [esp + 0xd4]
lea edx, [esp + 0xb0]
add ebp, 1
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 8], edx
call dword [esp + 0x110]
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0xb0]
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x90], eax
mov eax, edi
mov dword [esp + 0x94], edx
mov edx, esi
xor eax, ebx
xor edx, ecx
or eax, edx
mov edx, dword [esp + 0x5c]
cmp eax, 1
sbb eax, eax
and ebp, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], edi
mov dword [esp + 8], 0xb287b4
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xd0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.0090e610
mov eax, dword [esp + 0x94]
sub eax, 0x80000000
or eax, dword [esp + 0x90]
je 0x58360f
mov ebx, dword [esp + 0x94]
cmp dword [esp + 0x7c], ebx
jg 0x5833c1
jl 0x5833e0
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x78], eax
jbe 0x5833e0
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x5c], ecx
mov ebx, ecx
mov dword [esp + 0x58], edx
mov ecx, edx
mov eax, dword [esp + 0x90]
mov esi, ecx
mov edi, ebx
mov edx, dword [esp + 0x94]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
jmp 0x582fb2
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jmp 0x583394
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xb4]
add edx, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x94]
cmp dword [esp + 0x7c], ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x98], ecx
jg 0x583573
jl 0x58343e
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x78], eax
jae 0x583573
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
jmp 0x582fb2
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub eax, dword [esp + 0x68]
sbb edx, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x8c]
sub eax, dword [esp + 0xa0]
sbb edx, dword [esp + 0xa4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x7c]
sub eax, dword [esp + 0x68]
sbb edx, dword [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0090f0e0
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov ecx, dword [esp + 0x70]
sub dword [esp + 0x88], ecx
mov ebx, dword [esp + 0x74]
mov ecx, esi
sbb dword [esp + 0x8c], ebx
mov ebx, edi
sub ecx, dword [esp + 0x88]
sbb ebx, dword [esp + 0x8c]
add ecx, eax
adc ebx, edx
mov eax, ecx
mov dword [esp + 0xb0], ecx
mov edx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x5c], edx
mov edx, edi
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x58], eax
mov eax, esi
jg 0x583530
jl 0x583205
cmp dword [esp + 0x58], esi
jbe 0x583205
lea esi, [esi]
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x74], edx
jg 0x583221
nop
jl 0x583550
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x70], ecx
jae 0x583221
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
jmp 0x583221
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x5c]
jmp 0x583394
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
add eax, dword [esp + 0xa0]
mov esi, dword [esp + 0xa0]
adc edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xa4]
shrd eax, edx, 1
sar edx, 1
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
jmp 0x58350b
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x68], eax
ja 0x582ea5
jmp 0x582f8a
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebx
jmp 0x583006
mov ecx, dword [esp + 0xd0]
mov dword [esp + 8], 0xb28808
mov dword [esp + 4], 0
mov dword [esp], ecx
call fcn.0090e610
add esp, 0xbc
mov eax, 0xffffffff
pop ebx
mov edx, 0xffffffff
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
jmp 0x582fb0
mov ecx, dword [esp + 0xd0]
mov ebx, dword [esp + 0xd4]
mov eax, dword [ecx + 0xf50]
mov edx, dword [ecx + 0xf54]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xa4], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ecx
call dword [esp + 0x110]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x6c]
sub eax, 0x80000000
or eax, dword [esp + 0x68]
jne 0x582dd7
jmp 0x582ea5