Function at 0x58d9e0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x474
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x6e1964
xor ebx, ebx
push str.Encoding__s_image
lea eax, [esp + 0x280]
mov word [esp + 0x280], bx
call fcn.00483050
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
add esp, 8
push ebx
lea ecx, [esp + 0x27c]
push ecx
mov ecx, edi
call edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
xor esi, esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
jmp 0x58da40
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
jne 0x58e00a
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, eax
and ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x58dff2
push eax
lea ecx, [esp + 0x3f]
lea edx, [esp + 0x9c]
lea esi, [esp + 0x2c]
lea edi, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x3f], bl
call fcn.005be130
test al, al
je 0x58e028
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
call fcn.005b8110
cmp al, bl
jne 0x58dff2
push 0x50
call fcn.0069e704
add esp, 4
cmp eax, ebx
jne 0x58db70
call fcn.004b05b0
xor edi, edi
mov dword [esp + 0xc], edi
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov eax, dword [edx + 4]
test eax, eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
mov dword [esp + 0x48], edx
jge 0x58db04
fadd qword [0x7235b8]
test ecx, ecx
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
jge 0x58db16
fadd qword [0x7235b8]
mov eax, dword [esp + 0x34]
fild dword [esp + 0x34]
test eax, eax
jge 0x58db28
fadd qword [0x7235b8]
fdiv st(2)
mov ecx, dword [esp + 0x28]
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
fmul st(1)
fld qword [0x723578]
or eax, 0xc00
mov dword [esp + 0x24], eax
fadd st(1), st(0)
fldcw word [esp + 0x24]
fxch st(1)
fistp qword [esp + 0x58]
mov eax, dword [esp + 0x58]
cmp eax, ecx
fldcw word [esp + 0x20]
ja 0x58db82
mov ecx, dword [esp + 0x18]
fstp st(2)
fstp st(0)
mov dword [esp + 0x14], eax
fstp st(0)
jmp 0x58dbc6
mov ecx, eax
call fcn.004d0af0
mov edi, eax
mov dword [esp + 0xc], eax
jmp 0x58dae3
test ecx, ecx
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
jge 0x58db94
fadd qword [0x7235b8]
fdivrp st(2)
fxch st(1)
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
faddp st(1)
fldcw word [esp + 0x24]
fistp qword [esp + 0x58]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
fldcw word [esp + 0x20]
cmp ecx, ebx
jle 0x58dc31
cmp eax, ebx
jle 0x58dc31
push eax
mov eax, dword [edx]
call fcn.004ce820
cmp dword [edi + 0x40], ebx
je 0x58dc3a
mov ecx, dword [esp + 0xc]
cmp dword [ecx], 0xffffffff
je 0x58dc3a
mov edx, ecx
cmp dword [edx + 4], ebx
jle 0x58dc3a
mov eax, ecx
cmp dword [eax + 8], ebx
jle 0x58dc3a
mov edi, dword [esp + 0x48]
mov ecx, dword [edi + 0x14]
mov esi, eax
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], eax
call fcn.004d0cb0
mov eax, dword [esp + 0xc]
mov esi, edi
call fcn.004d6b80
jmp 0x58dc3a
mov esi, dword [esp + 0xc]
call fcn.004d16d0
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x40], ebx
je 0x58e046
cmp dword [edi], 0xffffffff
je 0x58e046
cmp dword [edi + 4], ebx
jle 0x58e046
cmp dword [edi + 8], ebx
jle 0x58e046
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x18], ecx
mov esi, dword [esp + 0x28]
jne 0x58dc7a
cmp dword [esp + 0x14], esi
je 0x58dfdd
push esi
lea edx, [esp + 0x23c]
push edx
xor eax, eax
call fcn.004d3de0
push 1
lea eax, [esp + 0x23c]
lea ecx, [esp + 0x19c]
call fcn.004d0b40
cmp dword [esp + 0x14], esi
push ebx
mov byte [esp + 0x32], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x33], bl
lea edi, [esp + 0x19c]
push ebx
jae 0x58de40
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sar eax, 1
lea esi, [esp + 0xb4]
mov dword [esp + 0x2c], eax
call fcn.004d3380
mov eax, dword [esp + 0xc0]
cmp eax, dword [esp + 0xac]
jae 0x58dd66
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xac]
call dword [esp + 0xd4]
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0xac]
cmp edx, esi
jae 0x58dd66
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
add eax, dword [esp + 0xb8]
add ecx, 1
add edx, 1
cmp ecx, dword [esp + 0xb0]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xc0], edx
jne 0x58dd62
add eax, dword [esp + 0xb4]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], eax
cmp edx, esi
jb 0x58dcf0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
push ebx
push ebx
push esi
push ebx
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov eax, edi
call fcn.004cfee0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
sub eax, esi
add esi, edi
push esi
sub eax, edi
push ebx
lea edi, [esp + 0x1a0]
lea esi, [esp + 0x144]
call fcn.004d3380
mov eax, dword [esp + 0x150]
cmp eax, dword [esp + 0x13c]
jae 0x58dfb9
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x13c]
call dword [esp + 0x164]
mov edx, dword [esp + 0x150]
mov esi, dword [esp + 0x13c]
cmp edx, esi
jae 0x58dfb9
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x158]
add eax, dword [esp + 0x148]
add ecx, 1
add edx, 1
cmp ecx, dword [esp + 0x140]
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], ecx
mov dword [esp + 0x150], edx
jne 0x58de37
add eax, dword [esp + 0x144]
mov dword [esp + 0x158], ebx
mov dword [esp + 0x154], eax
cmp edx, esi
jb 0x58ddc1
jmp 0x58dfb9
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sar ecx, 1
lea esi, [esp + 0xe4]
mov dword [esp + 0x2c], ecx
call fcn.004d3380
mov ecx, dword [esp + 0xf0]
cmp ecx, dword [esp + 0xdc]
jae 0x58dee8
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xdc]
call dword [esp + 0x104]
mov edx, dword [esp + 0xf0]
mov esi, dword [esp + 0xdc]
cmp edx, esi
jae 0x58dee8
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf8]
add eax, dword [esp + 0xe8]
add ecx, 1
add edx, 1
cmp ecx, dword [esp + 0xe0]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xf0], edx
jne 0x58dee4
add eax, dword [esp + 0xe4]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xf4], eax
cmp edx, esi
jb 0x58de72
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
push ebx
push ebx
push ebx
push esi
lea edx, [esp + 0x1a8]
push edx
push eax
mov eax, dword [esp + 0x2c]
mov ecx, edi
call fcn.004cfee0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
sub ecx, esi
add esi, edi
push ebx
sub ecx, edi
push esi
lea edi, [esp + 0x1a0]
lea esi, [esp + 0x114]
call fcn.004d3380
mov ecx, dword [esp + 0x120]
cmp ecx, dword [esp + 0x10c]
jae 0x58dfb9
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10c]
call dword [esp + 0x134]
mov edx, dword [esp + 0x120]
mov esi, dword [esp + 0x10c]
cmp edx, esi
jae 0x58dfb9
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x128]
add eax, dword [esp + 0x118]
add ecx, 1
add edx, 1
cmp ecx, dword [esp + 0x110]
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], ecx
mov dword [esp + 0x120], edx
jne 0x58dfb5
add eax, dword [esp + 0x114]
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], eax
cmp edx, esi
jb 0x58df43
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x198]
call fcn.004d1240
lea ecx, [esp + 0x198]
call fcn.004d0c50
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
sub esp, 8
mov eax, esp
push edi
lea edx, [esp + 0x1c]
push edx
mov dword [eax], ecx
mov dword [eax + 4], esi
call fcn.005b8140
mov esi, dword [esp + 0x1c]
add esi, 1
cmp esi, 0xd
mov dword [esp + 0x1c], esi
jae 0x58e074
mov edi, dword [ebp + 0xc]
jmp 0x58da40
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
mov dword [esi], 1
call fcn.005c47d0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esi], 2
call fcn.005c47d0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov ecx, edi
mov dword [esi], 2
call fcn.004d0c50
push edi
call fcn.0069d0cc
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.005c47d0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
fld qword [0x723688]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
sub esp, 8
fstp qword [esp]
call edx
mov edx, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x1c], esi
xor ecx, ecx
mov eax, 1
shl eax, cl
mov edi, eax
and edi, edx
cmp edi, eax
jne 0x58e0a8
add esi, 1
add ecx, 1
cmp ecx, 0xd
jb 0x58e096
mov ecx, dword [ebp + 0x10]
mov ax, si
mov dword [esp + 0x1c], esi
push ecx
lea edi, [esp + 0x5c]
lea esi, [esp + 0xa0]
mov word [esp + 0x5c], bx
mov word [esp + 0x5e], 1
mov word [esp + 0x60], ax
call fcn.005bdfb0
mov eax, dword [esp + 0x9c]
cmp eax, ebx
je 0x58e101
mov esi, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
mov dword [esi], eax
call fcn.005c47d0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0xc]
call fcn.005b81f0
mov edi, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], edi
jmp 0x58e124
mov edi, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
test al, al
jne 0x58e4f1
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, eax
and ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x58e3dd
push eax
lea ecx, [esp + 0x27]
lea edx, [esp + 0x40]
lea esi, [esp + 0x54]
lea edi, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x27], bl
call fcn.005be130
test al, al
je 0x58e547
push 0x50
call fcn.0069e704
add esp, 4
cmp eax, ebx
jne 0x58e354
call fcn.004b05b0
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x190], ecx
mov dword [esp + 0x194], edx
mov dword [esp + 0x94], eax
je 0x58e1db
cmp dword [eax + 4], ecx
jne 0x58e1ce
cmp dword [eax + 8], edx
je 0x58e39d
mov eax, dword [eax]
cmp eax, ebx
jne 0x58e1c0
mov dword [esp + 0x94], eax
lea eax, [esp + 0x70]
cmp byte [esp + 0x23], bl
mov esi, dword [eax]
je 0x58e3ac
lea eax, [esp + 0x7f]
and eax, 0xfffffffc
mov dword [esp + 0x74], 0x6dbfc0
mov dword [esp + 0x78], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [eax], ebx
mov edx, dword [esp + 0x78]
push edx
mov dword [esp + 0x78], 0x70c7cc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x74], 0x70c7cc
mov dword [esp + 0x84], edi
mov eax, dword [edi]
push eax
call fcn.0069c8fa
mov dword [edi], ebx
mov dword [edi + 4], ebx
add esp, 4
cmp dword [esi], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
je 0x58e29e
lea ecx, [esp + 0x1e8]
call fcn.004d0af0
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
xor eax, eax
lea edi, [esp + 0x1ec]
call fcn.004ce820
mov edx, esi
mov ecx, edi
call fcn.004d6750
mov eax, edi
mov edi, esi
call fcn.004d1240
lea ecx, [esp + 0x1e8]
call fcn.004d0c50
mov ecx, dword [esp + 0x30]
fild dword [esp + 0x30]
test ecx, ecx
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x74]
mov dword [esp + 0x16c], esi
mov dword [esp + 0x170], edx
mov dword [esp + 0x174], ebx
mov dword [esp + 0x17c], eax
mov dword [esp + 0x178], 0x6dbc50
jge 0x58e2de
fadd qword [0x7235b8]
fld qword [0x723e90]
lea edx, [esp + 0x54]
fmul st(1), st(0)
push edx
fxch st(1)
lea esi, [esp + 0x170]
lea edi, [esp + 0x17c]
fadd qword [0x723688]
fstp qword [esp + 0x184]
fstp qword [esp + 0x18c]
call fcn.00583400
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x178], 0x70c5e4
mov dword [esp + 0x74], 0x70c7cc
jne 0x58e588
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x78]
push ebx
push ecx
mov dword [esp + 0x7c], 0x6dbfc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
jmp 0x58e3c3
mov ecx, 1
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0xffffffff
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
jmp 0x58e193
mov dword [esp + 0x94], eax
add eax, 0xc
jmp 0x58e1df
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push edx
push esi
call fcn.005be340
test al, al
je 0x58e5c6
cmp dword [esp + 0x18], ebx
je 0x58e3dd
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004d0c50
push esi
call fcn.0069d0cc
add esp, 4
mov esi, dword [esp + 0x30]
add dword [esp + 0x14], 8
add esi, 1
cmp esi, 0xd
mov dword [esp + 0x30], esi
jb 0x58e120
mov ecx, dword [ebp + 0xc]
fld qword [0x723578]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
sub esp, 8
fstp qword [esp]
call edx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
shl eax, 4
add eax, 6
mov dword [esp + 0x1c], eax
xor edi, edi
lea eax, [esi + 4]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], eax
jmp 0x58e430
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
test al, al
jne 0x58e763
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, eax
and ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x58e66e
push eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
lea esi, [esp + 0x4c]
lea edi, [esp + 0x94]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
call fcn.005be130
test al, al
je 0x58e7b5
mov eax, dword [esp + 0x90]
cmp eax, 0x100
sete dl
sub dl, 1
mov byte [esp + 0x62], bl
mov byte [esp + 0x63], bl
mov word [esp + 0x64], 1
mov word [esp + 0x66], bx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
and edx, eax
mov eax, dword [esp + 0x48]
cmp eax, 0x100
sete cl
sub cl, 1
mov byte [esp + 0x60], dl
and ecx, eax
mov eax, dword [esp + 0x24]
cmp eax, 4
mov byte [esp + 0x61], cl
je 0x58e61f
cmp eax, 8
je 0x58e4e8
cmp eax, 0x20
jne 0x58e547
mov byte [esp + 0x62], bl
jmp 0x58e624
cmp edi, ebx
mov eax, dword [ebp + 8]
mov dword [eax], 1
je 0x58e531
mov esi, dword [edi - 4]
lea eax, [edi - 4]
lea ebx, [edi + esi*8]
sub esi, 1
mov dword [esp + 0x54], eax
js 0x58e524
mov ecx, dword [ebx - 8]
sub ebx, 8
push ecx
call fcn.0069c8fa
add esp, 4
sub esi, 1
jns 0x58e510
mov edx, dword [esp + 0x54]
push edx
call fcn.0069c8fa
add esp, 4
lea eax, [esp + 0x10]
push eax
call fcn.005c47d0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
mov dword [edi], 2
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x58e573
mov eax, dword [ecx - 4]
lea esi, [ecx - 4]
push 0x488280
push 8
call fcn.00407720
push esi
call fcn.0069c8fa
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call fcn.005c47d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x78]
mov edi, dword [ebp + 8]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x78]
push ebx
push eax
mov dword [esp + 0x7c], 0x6dbfc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x58e550
mov ecx, esi
call fcn.004d0c50
push esi
call fcn.0069d0cc
add esp, 4
jmp 0x58e550
mov esi, dword [esp + 0x18]
cmp esi, ebx
mov edi, dword [ebp + 8]
mov dword [edi], 2
je 0x58e5e7
mov ecx, esi
call fcn.004d0c50
push esi
call fcn.0069d0cc
add esp, 4
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x58e60a
mov eax, dword [ecx - 4]
lea esi, [ecx - 4]
push 0x488280
push 8
call fcn.00407720
push esi
call fcn.0069c8fa
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.005c47d0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esp + 0x62], 0x10
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x10]
mov word [esp + 0x66], ax
mov eax, dword [edx]
lea edx, [esp + 0xa0]
push edx
lea esi, [esp + 0x64]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
call fcn.005be030
mov eax, dword [esp + 0xa0]
cmp eax, ebx
jne 0x58e7f2
mov eax, dword [esp + 0x68]
add dword [esp + 0x1c], eax
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x3c]
add dword [esp + 0x30], 8
add edi, 1
cmp edi, 0xd
mov dword [esp + 0x3c], edi
jb 0x58e430
mov ecx, dword [ebp + 0xc]
fld qword [0x723b90]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
sub esp, 8
fstp qword [esp]
call eax
mov dword [esp + 0x1c], ebx
lea edi, [esi + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
test al, al
jne 0x58e843
mov ecx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
mov ecx, eax
and ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x58e6ef
mov eax, dword [edi]
mov ecx, dword [edi - 4]
push ebx
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x40]
cmp edx, dword [edi]
jne 0x58e87f
mov eax, dword [esp + 0x1c]
add eax, 1
add edi, 8
cmp eax, 0xd
mov dword [esp + 0x1c], eax
jb 0x58e6a0
mov ecx, dword [ebp + 0xc]
fld1
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
sub esp, 8
fstp qword [esp]
call edx
cmp esi, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
je 0x58e74d
mov ebx, dword [esi - 4]
lea edi, [esi - 4]
lea esi, [esi + ebx*8]
sub ebx, 1
js 0x58e744
jmp 0x58e730
mov ecx, dword [esi - 8]
sub esi, 8
push ecx
call fcn.0069c8fa
add esp, 4
sub ebx, 1
jns 0x58e730
push edi
call fcn.0069c8fa
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.005c47d0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
je 0x58e531
mov ebx, dword [esi - 4]
lea edi, [esi - 4]
lea esi, [esi + ebx*8]
sub ebx, 1
js 0x58e796
mov edx, dword [esi - 8]
sub esi, 8
push edx
call fcn.0069c8fa
add esp, 4
sub ebx, 1
jns 0x58e782
push edi
call fcn.0069c8fa
add esp, 4
lea eax, [esp + 0x10]
push eax
call fcn.005c47d0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], 2
je 0x58e531
mov esi, dword [eax - 4]
lea edi, [eax - 4]
lea ebx, [eax + esi*8]
sub esi, 1
js 0x58e7ec
mov edx, dword [ebx - 8]
sub ebx, 8
push edx
call fcn.0069c8fa
add esp, 4
sub esi, 1
jns 0x58e7d8
push edi
jmp 0x58e529
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58e82d
mov esi, dword [eax - 4]
lea edi, [eax - 4]
lea ebx, [eax + esi*8]
sub esi, 1
js 0x58e824
lea ecx, [ecx]
mov eax, dword [ebx - 8]
sub ebx, 8
push eax
call fcn.0069c8fa
add esp, 4
sub esi, 1
jns 0x58e810
push edi
call fcn.0069c8fa
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call fcn.005c47d0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, ebx
mov eax, dword [ebp + 8]
mov dword [eax], 1
je 0x58e74d
mov ebx, dword [esi - 4]
lea edi, [esi - 4]
lea esi, [esi + ebx*8]
sub ebx, 1
js 0x58e744
mov ecx, dword [esi - 8]
sub esi, 8
push ecx
call fcn.0069c8fa
add esp, 4
sub ebx, 1
jns 0x58e866
jmp 0x58e744
cmp esi, ebx
mov eax, dword [ebp + 8]
mov dword [eax], 2
je 0x58e74d
mov ebx, dword [esi - 4]
lea edi, [esi - 4]
lea esi, [esi + ebx*8]
sub ebx, 1
js 0x58e744
mov ecx, dword [esi - 8]
sub esi, 8
push ecx
call fcn.0069c8fa
add esp, 4
sub ebx, 1
jns 0x58e8a2
jmp 0x58e744