Function at 0x59d000
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [esi + 0x47]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0xb1]
mov dword [esp + 0x28], ecx
movzx ecx, word [eax + 0x28]
mov dword [esp + 0x20], edx
movsx edx, word [eax + 0x2e]
add ecx, eax
test byte [eax + 0x25], 4
push edi
mov dword [esp + 0x1c], edx
je 0x59d065
mov dl, byte [eax + 0x24]
and dl, 3
mov byte [esp + 0x13], 1
cmp dl, 2
je 0x59d06a
mov byte [esp + 0x13], 0
mov edx, dword [str.public]
mov ebp, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x13], al
setne al
cmp byte [edx + 0x6f0], 0
mov dword [esp + 0x28], eax
je 0x59d0ac
movzx edi, word [ebp]
movsx eax, di
cdq
sub eax, edx
sar eax, 1
movzx edx, word [ebp + eax*2 - 2]
cmp dx, di
jl 0x59d0a3
dec eax
jmp 0x59d0a6
movsx eax, dx
cmp eax, dword [esp + 0x1c]
jne 0x59d103
cmp byte [esi + 0x69], 0
jne 0x59d103
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax + 2]
mov edx, ebp
mov edi, ecx
cmp eax, 4
jb 0x59d0d7
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x59d0ff
sub eax, 4
add edx, 4
add edi, 4
cmp eax, 4
jae 0x59d0c3
test eax, eax
je 0x59d164
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x59d0ff
cmp eax, 1
jbe 0x59d164
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x59d0ff
cmp eax, 2
jbe 0x59d164
mov dl, byte [edx + 2]
cmp dl, byte [edi + 2]
je 0x59d164
mov byte [esi + 0x69], 1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax + 2]
movzx ecx, cx
mov dword [edx], ebx
lea edx, [ebx + 2]
lea ebp, [ebx + eax*2 + 2]
mov word [ebx], cx
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
test eax, eax
jle 0x59d172
lea esp, [esp]
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x24]
movzx eax, word [esi + ebx*8 + 6]
je 0x59d187
test ebx, ebx
jne 0x59d187
mov edi, dword [esp + 0x2c]
movsx eax, word [esi + ebx*8]
dec eax
cmp eax, 0x1e
ja case.0x59d15d.10
movzx ecx, byte [eax + 0x59d400]
jmp dword [ecx*4 + 0x59d3c0]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x69], 2
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00586584
add esp, 0x38
ret
mov ecx, dword [esp + 0x18]
cwde
sub eax, dword [esp + 0x28]
lea eax, [ecx + eax*2]
movzx ecx, word [eax]
cmp cx, word [eax + 2]
je 0x59d1a5
movsx edi, cx
add edi, dword [esp + 0x18]
jne 0x59d148
mov ax, word [esp + 0x20]
jmp 0x59d35b
mov edx, dword [edi]
mov esi, 4
mov dword [ebp], edx
jmp 0x59d34b
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x59d1c3
sub esi, ecx
jne 0x59d2db
mov byte [ebp], 0
mov esi, 1
jmp 0x59d34b
mov al, byte [edi]
mov esi, 1
mov byte [ebp], al
jmp 0x59d34b
mov cl, byte [edi]
mov byte [ebp], cl
mov dl, byte [edi + 1]
mov esi, 2
mov byte [ebp + 1], dl
jmp 0x59d34b
mov eax, dword [edi]
mov dword [ebp], eax
mov ecx, dword [edi + 4]
mov esi, 8
mov dword [ebp + 4], ecx
jmp 0x59d34b
fld dword [edi]
mov esi, 4
fstp dword [ebp]
jmp 0x59d34b
fld qword [edi]
mov esi, 8
fstp qword [ebp]
jmp 0x59d34b
mov dl, byte [edi]
mov esi, 1
mov byte [ebp], dl
jmp 0x59d34b
mov eax, dword [str.public]
cmp dword [eax + 0x70c], 6
jne 0x59d28e
cmp dword [eax + 0x710], 4
jge 0x59d28e
push edi
call fcn.00580f00
add esp, 4
test al, al
jne 0x59d28e
movsx eax, byte [esi + ebx*8 + 3]
test eax, eax
jle 0x59d28e
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
call fcn.00582600
add esp, 0xc
test eax, eax
jne 0x59d174
lea edi, [esp + 0x30]
push edi
call fcn.00580600
mov esi, eax
push esi
push edi
push ebp
call sub.MSVCR90.dll_memcpy
add esp, 0x10
jmp 0x59d34b
push edi
call fcn.00580550
mov esi, eax
push esi
push edi
push ebp
call sub.MSVCR90.dll_memcpy
add esp, 0x10
jmp 0x59d34b
push edi
call fcn.00580570
mov esi, eax
push esi
push edi
push ebp
call sub.MSVCR90.dll_memcpy
add esp, 0x10
jmp 0x59d34b
mov esi, dword [edi]
add esi, 4
push esi
push edi
push ebp
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x59d34b
mov eax, dword [edi]
add eax, 7
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
add esi, 4
push esi
push edi
push ebp
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x59d34b
movzx eax, word [edi]
add eax, 7
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
add esi, 2
push esi
push edi
push ebp
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x59d34b
mov edx, dword [edi]
mov dword [ebp], edx
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [edi + 0x10]
mov esi, 0x14
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add ebp, esi
add eax, esi
mov dword [esp + 0x20], eax
mov word [edx], ax
add edx, 2
inc ebx
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
jl 0x59d130
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00586584
add esp, 0x38
ret
movsx ecx, word [esi + ebx*8]
push 0
push 0
push 0
push ecx
push ebx
push str.UNALIGN_TUP
push 0x480
push 0x145
call fcn.00406f10
mov ecx, dword [esp + 0x64]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x145
call fcn.00586584
add esp, 0x38
ret