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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f4f5f
sub esp, 0x6c
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 3
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
call fcn.005b4580
movzx eax, byte [esp + 0xc]
test al, al
je 0x5f4f3d
jmp 0x5f4de6
mov edx, dword [esp + 0x40]
test edx, edx
je 0x5f4de6
mov word [esp + 0x22], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
cmp ebx, 2
jge 0x5f4dc0
xor ecx, ecx
xor edx, edx
test edx, edx
je 0x5f4db9
test ecx, ecx
jbe 0x5f4f57
movzx ebx, byte [edx]
cmp ecx, 1
jbe 0x5f4f4d
movzx edx, byte [edx + 1]
shl ebx, 8
or ebx, edx
mov word [esp + 0x22], bx
mov ecx, 1
test cl, cl
jne 0x5f4d8c
mov ecx, 1
test cl, cl
jne 0x5f4d83
cmp dword [eax + 4], 1
jg 0x5f4a9f
movzx edx, word [esp + 0x22]
cmp dx, 5
jne 0x5f4c08
mov byte [esp + 0x21], 0
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
cmp ebx, 1
jge 0x5f4be4
xor ecx, ecx
xor edx, edx
test edx, edx
je 0x5f4be0
test ecx, ecx
jbe 0x5f4f46
movzx edx, byte [edx]
mov byte [esp + 0x21], dl
mov ecx, 1
test cl, cl
je 0x5f4bd9
cmp byte [esp + 0x21], 1
je 0x5f4baf
mov ecx, 1
test cl, cl
jne 0x5f4ba6
mov edx, dword [eax + 0x18]
test edx, edx
je 0x5f4ba6
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x5f4a9f
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
nop
lea ecx, [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], 3
lea ecx, [eax + 0x14]
mov dword [esp + 8], ecx
call fcn.005b4580
movzx ecx, byte [esp + 0xc]
xor ecx, 1
mov eax, dword [esp + 0x74]
jmp 0x5f4b86
mov ecx, 1
jmp 0x5f4b86
xor ecx, ecx
jmp 0x5f4b76
dec ebx
mov dword [esp + 0x4c], ebx
lea ebx, [ebp - 1]
mov dword [esp + 0x50], ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add ebx, edx
mov dword [esp + 0x48], ebx
mov ecx, 1
jmp 0x5f4b5e
cmp dx, 0x12
jne 0x5f4a9f
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 2
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
call fcn.005b4580
movzx eax, byte [esp + 0xc]
test al, al
je 0x5f4d7a
mov edx, dword [esp + 0x28]
test edx, edx
je 0x5f4d7a
mov edx, dword [esp + 0x28]
test edx, edx
je 0x5f4d71
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
nop
lea eax, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.005b4580
movzx eax, byte [esp + 0xc]
test al, al
je 0x5f4d68
mov edx, dword [esp + 0x34]
test edx, edx
je 0x5f4d68
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x24]
lea ebp, [ebx + 1]
mov esi, dword [edx + 0x28]
mov eax, edx
mov edx, dword [edx + 0x20]
cmp ebp, esi
ja 0x5f4d13
lea ebp, [ebx + 1]
mov dword [eax + 0x24], ebp
lea ebx, [ebx + ebx*2]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ecx, esi
mov esi, dword [esp + 0x34]
mov dword [edx + ebx*4 + 4], esi
mov dword [edx + ebx*4 + 8], ebp
mov ebp, dword [0xdd7ec0]
lea edi, [edx + ebx*4]
test ebp, ebp
jne 0x5f4d03
mov dword [edx + ebx*4], ecx
jmp 0x5f4c5f
mov edx, eax
mov eax, ecx
call fcn.00456fe0
mov eax, edx
jmp 0x5f4c5f
lea eax, [0x8c74c0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.00440660
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x28], edx
mov edx, dword [0xdd7ec0]
test edx, edx
jne 0x5f4d5e
mov dword [ebx + 0x20], eax
mov ebx, ecx
mov edx, eax
mov eax, dword [esp + 0x74]
jmp 0x5f4ccf
lea edi, [ebx + 0x20]
call fcn.00456fe0
jmp 0x5f4d51
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
jmp 0x5f4b91
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
lea eax, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.005b4580
movzx ecx, byte [esp + 0xc]
xor ecx, 1
mov eax, dword [esp + 0x74]
jmp 0x5f4b1f
xor ecx, ecx
jmp 0x5f4b12
add ebx, 0xfffffffe
mov dword [esp + 0x40], ebx
lea ebx, [ebp - 2]
mov dword [esp + 0x44], ebx
neg ebx
sar ebx, 0x1f
and ebx, 2
add ebx, edx
mov dword [esp + 0x3c], ebx
mov ecx, 2
jmp 0x5f4ae3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5f4f34
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
nop
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 3
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
call fcn.005b4580
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5f4f0b
mov eax, 1
test al, al
jne 0x5f4f02
mov edx, dword [esp + 0x74]
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov esi, dword [edx + 8]
mov eax, edx
lea edx, [ebp + 1]
cmp edx, esi
ja 0x5f4eb3
lea edx, [ebp + 1]
mov dword [eax + 4], edx
lea edx, [ebp + ebp*2]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov ecx, esi
mov esi, dword [esp + 0x60]
mov dword [ebx + edx*4 + 4], ebp
mov dword [ebx + edx*4 + 8], ecx
lea edi, [ebx + edx*4]
mov ebp, dword [0xdd7ec0]
test ebp, ebp
jne 0x5f4ea3
mov dword [ebx + edx*4], esi
jmp 0x5f4a9f
mov ecx, eax
mov eax, esi
call fcn.00456fe0
mov eax, ecx
jmp 0x5f4a9f
lea eax, [0x8c74c0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
call fcn.00440660
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
mov dword [edi + 8], edx
mov edx, dword [0xdd7ec0]
test edx, edx
jne 0x5f4efb
mov dword [edi], eax
mov ebp, ecx
mov ebx, eax
mov eax, edi
jmp 0x5f4e6e
call fcn.00456fe0
jmp 0x5f4ef0
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 2
lea ecx, [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.005b4580
movzx eax, byte [esp + 0xc]
xor eax, 1
jmp 0x5f4e51
mov byte [esp + 0x78], 1
add esp, 0x6c
ret
mov byte [esp + 0x78], 0
add esp, 0x6c
ret
xor eax, eax
call fcn.00457060
mov eax, 1
call fcn.00457060
xor eax, eax
call fcn.00457060
nop
call fcn.004557a0
jmp fcn.005f4a40