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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58f1e4
sub esp, 0x58
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
xor ebx, ebx
jmp 0x58ee5c
sub edx, eax
mov ebp, dword [esp + 0x6c]
sub ebp, eax
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
mov ebp, dword [esp + 0x64]
add ebp, eax
mov eax, esi
mov ebx, ecx
mov ecx, edx
mov edx, ebp
mov dword [esp + 0x3c], ebx
test ecx, ecx
jle 0x58f115
mov dword [esp + 0x6c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
movzx ecx, byte [esp + 0x60]
mov byte [esp + 4], cl
call fcn.0058e940
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jle 0x58f10e
mov dword [esp + 0x44], eax
nop
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx + 0x1a0]
mov ebp, dword [edx + 0x1a8]
cmp ebp, 5
jl 0x58f0c8
mov dword [edx + 0x1a4], 5
mov dword [edx + 0x1a8], ebp
mov ebp, dword [0xb91180]
lea edi, [edx + 0x1a0]
test ebp, ebp
jne 0x58f0b8
mov dword [edx + 0x1a0], ebx
movzx ebp, byte [esp + 0x60]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
movzx ebx, word [edx + 0x20]
test bx, bx
jne 0x58f0a3
mov ebx, 0x301
mov esi, dword [edx + 0x1a0]
cmp dword [edx + 0x1a4], 1
jbe 0x58f1dd
mov word [esp + 0x3a], bx
shr bx, 8
mov byte [esi + 1], bl
mov ebx, dword [edx + 0x1a0]
cmp dword [edx + 0x1a4], 2
jbe 0x58f1d6
movzx esi, word [esp + 0x3a]
xchg esi, eax
mov byte [ebx + 2], al
xchg esi, eax
mov ebx, dword [edx + 0x1a0]
cmp dword [edx + 0x1a4], 3
jbe 0x58f1cf
mov esi, eax
sar eax, 8
mov byte [ebx + 3], al
mov eax, dword [edx + 0x1a0]
cmp dword [edx + 0x1a4], 4
jbe 0x58f1c8
xchg esi, ebx
mov byte [eax + 4], bl
xchg esi, ebx
test esi, esi
jl 0x58f1c1
mov eax, dword [esp + 0x6c]
cmp esi, eax
ja 0x58f1c1
mov dword [esp + 0x54], edi
mov ebx, dword [edx + 0x24]
nop
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
test ebp, ebp
je 0x58f092
mov dword [esp + 0x48], ebx
lea ecx, [edx + 0x108]
mov edi, dword [edx + 0x1a8]
mov ebx, dword [edx + 0x1a0]
mov edx, dword [edx + 0x1a4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
call fcn.0058c120
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x5c]
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a8], edx
mov edi, dword [0xb91180]
test edi, edi
jne 0x58f07d
mov dword [esi + 0x1a0], ebp
test ecx, ecx
jne 0x58f069
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.0058eb90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x58f055
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov edx, dword [esp + 0x40]
cmp eax, edx
jbe 0x58ee39
jmp 0x58f1ba
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x58
ret
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x58
ret
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x54]
mov eax, ebp
call fcn.0044f0d0
mov eax, dword [esp + 0x50]
jmp 0x58f016
mov ebp, dword [0xb7d440]
mov ebx, dword [0xb7d444]
jmp 0x58ef96
cmp bx, 0x304
jne 0x58eefc
mov ebx, 0x303
jmp 0x58eefc
mov ebp, eax
mov eax, ebx
call fcn.0044f0d0
mov eax, ebp
jmp 0x58eee1
mov dword [esp + 0x4c], ebx
lea eax, [0x7ac140]
mov dword [esp], eax
mov dword [esp + 4], 5
mov dword [esp + 8], 5
call fcn.0043a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
je 0x58f0f6
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
mov ebp, 5
mov ebx, eax
mov eax, dword [esp + 0x44]
jmp 0x58eeb7
mov eax, ecx
jmp 0x58ee99
movzx eax, byte [esp + 0x60]
cmp al, 0x14
jne 0x58f12b
mov eax, dword [esp + 0x5c]
cmp word [eax + 0x20], 0x304
jne 0x58f143
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x58
ret
lea ecx, [eax + 0x108]
mov dword [esp], ecx
call fcn.0058b0c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x58f196
lea edx, [0x8b44d0]
cmp edx, ecx
jne 0x58f19c
movzx eax, byte [eax]
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov byte [esp + 4], al
call fcn.0058e730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x58
ret
mov ebx, dword [esp + 0x3c]
jmp 0x58f12b
mov dword [esp], ecx
lea eax, [0x7c5760]
mov dword [esp + 4], eax
lea eax, [0x7bd240]
mov dword [esp + 8], eax
call fcn.00407710
ud2
call fcn.004288c0
ud2
call fcn.004288c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.0044d880
jmp fcn.0058ee10