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

Disassembly:
sub esp, 0xb4
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x1b8]
push esi
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
je 0x582be8
cmp byte [esi + 0x4a], 8
jne 0x582be8
mov eax, dword [0x727a08]
test eax, eax
jne 0x582bf2
xor eax, eax
pop esi
add esp, 0xb4
ret
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
push ebx
push ebp
push edi
push 0
push 0
lea edx, [esp + 0x84]
push edx
push 0
push eax
call dword [ecx + 0x4c]
mov eax, dword [esi + 0x74]
mov ebp, dword [esp + 0x80]
movsx edi, word [esi + 0x44]
movsx ebx, word [esi + 0x46]
push 8
push 0
push 0
push 0x200000
mov dword [esp + 0x54], ebp
mov dword [esp + 0x30], eax
call fcn.00547c20
movsx ecx, word [esi + 0x44]
mov dword [esp + 0x40], eax
movsx eax, word [esi + 0x46]
imul eax, ecx
mov ecx, dword [esp + 0x3c]
add eax, ebp
mov dword [esp + 0x28], eax
add esp, 0x10
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ebp
jle 0x582c96
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x2c]
add ecx, 0x2c
mov esi, dword [ecx - 0x14]
test esi, esi
je 0x582c8e
mov esi, dword [ecx - 8]
mov dword [esp + eax*4 + 0xa4], esi
mov esi, dword [ecx]
mov dword [esp + eax*4 + 0x84], esi
inc eax
add ecx, 0x34
cmp eax, edx
jl 0x582c74
mov eax, dword [0x728fa4]
test eax, eax
jne 0x582dd7
mov edi, dword [esp + 0x20]
or eax, 0xffffffff
add edi, 8
mov dword [esp + 0x4c], 0xbf0000ff
mov dword [esp + 0x50], 0xbf00ff00
mov dword [esp + 0x54], 0xbfff0000
mov dword [esp + 0x58], 0xbfff00ff
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
xor esi, esi
nop
mov ecx, dword [esp + esi + 0x4c]
xor edx, edx
mov eax, edi
cmp dword [eax - 8], ecx
je 0x582d3e
cmp dword [eax - 4], ecx
je 0x582d1f
cmp dword [eax], ecx
je 0x582d22
cmp dword [eax + 4], ecx
je 0x582d27
cmp dword [eax + 8], ecx
je 0x582d2c
cmp dword [eax + 0xc], ecx
je 0x582d31
cmp dword [eax + 0x10], ecx
je 0x582d36
cmp dword [eax + 0x14], ecx
je 0x582d3b
add edx, 8
add eax, 0x20
cmp edx, 0x100
jl 0x582ce8
jmp 0x582d3e
inc edx
jmp 0x582d3e
add edx, 2
jmp 0x582d3e
add edx, 3
jmp 0x582d3e
add edx, 4
jmp 0x582d3e
add edx, 5
jmp 0x582d3e
add edx, 6
jmp 0x582d3e
add edx, 7
cmp edx, 0x100
je 0x582d4a
mov dword [esp + esi + 0x6c], edx
add esi, 4
cmp esi, 0x10
jl 0x582ce0
xor eax, eax
mov ecx, 0x40
mov edi, 0x728e80
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
cmp ebp, edi
jae 0x582dc3
xor edx, edx
lea ebx, [ebx]
mov esi, dword [esp + 0x14]
movzx ecx, byte [esi]
xor eax, eax
lea esp, [esp]
cmp ecx, dword [esp + eax*4 + 0x6c]
je 0x582d8e
inc eax
cmp eax, 4
jl 0x582d80
jmp 0x582db1
mov cl, al
inc cl
mov byte [esi], cl
mov ecx, dword [eax*4 + 0x728fa8]
mov ebx, eax
shl ebx, 4
add ebx, ecx
inc ecx
mov dword [ebx*4 + 0x728e80], edx
mov dword [eax*4 + 0x728fa8], ecx
cmp eax, 4
jne 0x582db9
mov byte [esi], 0
inc esi
inc edx
cmp esi, edi
mov dword [esp + 0x14], esi
jb 0x582d70
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov dword [0x728fa4], 1
jmp 0x582dee
mov ecx, ebx
imul ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x10], eax
cmp esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
jae 0x58305d
lea esp, [esp]
test eax, eax
movzx edi, byte [esi]
mov edi, dword [ecx + edi*4]
mov dword [esp + 0x48], edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], 0
jle 0x58304c
lea esi, [edx + 0x30]
lea ebx, [ebx]
mov edi, dword [esi - 0x18]
test edi, edi
je 0x583034
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + eax*4 + 0xa4]
mov bl, byte [ebp]
mov edx, dword [esi - 8]
mov edi, dword [esi]
movzx ecx, bl
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + eax*4 + 0x84]
movzx edx, byte [edx]
mov edi, dword [edi + edx*4]
mov edx, dword [esi + 8]
and edi, 0xff
test edx, edx
mov dword [esp + 0x1c], ecx
je 0x582f0f
test edi, edi
jbe 0x582f0f
mov edx, dword [esp + 0x1c]
movzx eax, cl
mov dword [esp + 0x3c], eax
movzx ecx, ch
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
fmul dword [0x6bdbc4]
shr edx, 0x10
movzx edx, dl
fstp dword [esp + 0x5c]
fild dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
push 1
push 3
fmul dword [0x6bdbc4]
lea eax, [esp + 0x64]
push eax
lea ecx, [esi + 0xc]
fstp dword [esp + 0x6c]
push ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x78], 0
fmul dword [0x6bdbc4]
fstp dword [esp + 0x74]
call fcn.00582360
mov ecx, eax
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp edi, 0x7f
jbe 0x582f3e
mov dl, byte [esp + 0x38]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
mov cl, byte [esp + 0x13]
add dl, bl
test cl, cl
mov byte [edi], dl
je 0x583001
dec dword [esp + 0x28]
mov byte [esp + 0x13], 0
jmp 0x583001
test edi, edi
jbe 0x583001
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
jge 0x582f56
fadd dword [0x6bdcac]
fmul dword [0x6bda24]
fst dword [esp + 0x4c]
fcomp dword [0x6bda18]
fnstsw ax
test ah, 0x41
jne 0x582f75
mov dword [esp + 0x4c], 0x3f800000
fld dword [0x6bda18]
mov eax, dword [esp + 0x48]
fsub dword [esp + 0x4c]
push 0
mov dword [esp + 0x70], ecx
push 2
lea ecx, [esp + 0x54]
fstp dword [esp + 0x58]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x80], eax
call fcn.00582360
mov ecx, eax
mov al, byte [esp + 0x23]
add esp, 0x10
test al, al
jne 0x582fe1
mov edx, dword [esi - 0xc]
mov eax, ebp
sub eax, edx
mov edx, dword [esp + 0x40]
movsx edi, word [edx + 0x44]
cdq
idiv edi
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [ebx + edi*8 + 4], ecx
inc edi
mov dword [esp + 0x28], edi
mov word [ebx + edi*8 - 8], dx
mov word [ebx + edi*8 - 6], ax
jmp 0x582fed
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [eax + edx*8 - 4], ecx
mov eax, dword [esp + 0x14]
mov byte [eax], 0xff
mov eax, dword [esp + 0x34]
mov byte [esp + 0x13], 1
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + eax*4 + 0x84]
mov edx, dword [esp + 0xc8]
inc ebp
inc ecx
mov dword [esp + eax*4 + 0x84], ecx
mov ecx, dword [esi + 4]
mov dword [esp + eax*4 + 0xa4], ebp
mov eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
inc edi
add esi, 0x34
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x582e60
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
inc esi
cmp esi, edi
mov dword [esp + 0x14], esi
jb 0x582e30
test eax, eax
mov edx, 5
mov dword [esp + 0x14], edx
jle 0x583162
mov esi, dword [esp + 0xc8]
mov eax, dword [esp + 0x2c]
add esi, 0x34
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x5830b7
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x583148
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + edx*4]
lea ebx, [ebx]
mov edi, dword [esi - 0xc]
mov edi, dword [edi + eax*4]
mov dword [ecx], edi
mov edi, dword [esi]
inc eax
add ecx, 4
cmp eax, edi
jl 0x5830a0
jmp 0x583148
mov eax, dword [esi]
xor edi, edi
test eax, eax
jle 0x583148
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], edi
lea ebx, [esi + 8]
lea ebp, [edx + eax*4]
mov ecx, dword [esi - 0xc]
mov eax, dword [ecx + edi*4]
movzx edx, al
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
movzx eax, ah
fmul dword [0x6bdbc4]
mov dword [esp + 0x1c], eax
shr ecx, 0x10
fstp dword [esp + 0x5c]
movzx ecx, cl
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
fmul dword [0x6bdbc4]
push 1
push 3
lea edx, [esp + 0x64]
fstp dword [esp + 0x68]
push edx
fild dword [esp + 0x28]
push ebx
fmul dword [0x6bdbc4]
fstp dword [esp + 0x74]
call fcn.00582360
add esp, 0x10
mov dword [ebp], eax
mov eax, dword [esi]
inc edi
add ebp, 4
cmp edi, eax
jl 0x5830d5
mov edx, dword [esp + 0x14]
mov edi, dword [esi]
mov eax, dword [esp + 0x18]
add edx, edi
add esi, 0x34
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
jne 0x583080
mov eax, dword [esp + 0x28]
test eax, eax
je 0x583336
mov ebp, 0xff
sub ebp, edx
cmp eax, ebp
mov ebx, eax
jge 0x5831d6
xor ecx, ecx
test eax, eax
jle 0x583336
mov eax, dword [esp + 0x20]
lea esi, [eax + edx*4]
mov eax, dword [esp + 0x30]
add eax, 4
jmp 0x5831a0
mov edx, dword [esp + 0x14]
lea esp, [esp]
movsx edi, word [eax - 2]
mov ebx, dword [esp + 0x40]
movsx ebx, word [ebx + 0x44]
mov ebp, dword [esp + 0x44]
imul edi, ebx
movsx ebx, word [eax - 4]
add dl, cl
add ebp, edi
mov byte [ebx + ebp], dl
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [esp + 0x28]
inc ecx
add esi, 4
add eax, 8
cmp ecx, edx
jl 0x583195
jmp 0x583336
mov ecx, dword [0x727a08]
neg ecx
sbb ecx, ecx
and ecx, 0x6300000
shl eax, 2
cmp ecx, eax
jge 0x5831ef
xor ebx, ebx
push 8
push 0
lea edi, [ebx*4]
push 0
push edi
call fcn.00547c20
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x18], eax
jle 0x583243
lea ecx, [eax + 2]
mov eax, dword [esp + 0x30]
add eax, 5
mov esi, ebx
lea esp, [esp]
mov dl, byte [eax - 1]
mov byte [ecx - 2], dl
mov dl, byte [eax]
mov byte [ecx - 1], dl
mov dl, byte [eax + 1]
mov byte [ecx], dl
mov dl, byte [eax + 2]
mov byte [ecx + 1], dl
add eax, 8
add ecx, 4
dec esi
jne 0x583220
mov eax, dword [esp + 0x18]
push 0x14
push ebp
push edi
push eax
call fcn.0059e190
add esp, 0x10
call fcn.0059e7e0
call fcn.0059e220
xor esi, esi
test ebp, ebp
jle 0x5832b6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx*4]
jmp 0x583270
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x2b]
push eax
lea ecx, [esp + 0x2d]
push ecx
lea edx, [esp + 0x32]
push edx
push esi
call fcn.0059ea30
movzx ecx, byte [esp + 0x39]
movzx edx, byte [esp + 0x3b]
xor eax, eax
mov ah, byte [esp + 0x27]
add esp, 0x14
add edi, 4
mov al, byte [esp + 0x26]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov dword [edi - 4], eax
inc esi
cmp esi, ebp
jl 0x583270
call fcn.0059e260
test ebx, ebx
jle 0x583329
mov esi, dword [esp + 0x30]
add esi, 7
jmp 0x5832d0
mov ecx, dword [esp + 0x40]
movsx edx, word [ecx + 0x44]
movsx eax, word [esi - 5]
movsx edi, word [esi - 7]
imul eax, edx
mov ecx, dword [esp + 0x44]
add ecx, eax
mov al, byte [edi + ecx]
add edi, ecx
cmp al, 0xff
jne 0x583323
movzx edx, byte [esi]
movzx eax, byte [esi - 1]
movzx ecx, byte [esi - 2]
push edx
mov edx, dword [esi - 3]
push eax
push ecx
and edx, 0xff
push edx
call fcn.0059e390
add esp, 0x10
cmp eax, ebp
jge 0x583320
mov cl, byte [esp + 0x14]
add cl, al
mov byte [edi], cl
jmp 0x583323
mov byte [edi], 0
add esi, 8
dec ebx
jne 0x5832d0
mov edx, dword [esp + 0x18]
push edx
call fcn.00547da0
add esp, 4
mov eax, dword [esp + 0x30]
push eax
call fcn.00547da0
mov eax, 0x728e80
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], eax
mov ecx, 0x728fa8
mov edx, dword [ecx]
xor esi, esi
test edx, edx
jle 0x583373
mov dl, bl
inc dl
nop
mov edi, dword [eax]
mov ebp, dword [esp + 0x44]
mov byte [edi + ebp], dl
mov edi, dword [ecx]
inc esi
add eax, 4
cmp esi, edi
jl 0x583360
mov eax, dword [esp + 0x18]
add ecx, 4
add eax, 0x40
inc ebx
cmp ecx, 0x728fb8
mov dword [esp + 0x18], eax
jl 0x583353
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x50]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xb4
ret