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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5824d9
sub esp, 0x7c
mov ebx, dword [esp + 0x80]
mov ebp, dword [ebx + 0x19c]
mov ecx, dword [ebx + 0x1a0]
mov esi, dword [ebx + 0x1a4]
mov eax, dword [ebx + 0x1a8]
mov edi, ecx
sub ecx, eax
cmp ecx, 4
jge 0x581c12
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.0057e310
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x581ba9
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
nop
cmp eax, edi
ja 0x5824d1
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
movzx esi, byte [ebp + eax + 1]
shl esi, 0x10
movzx edi, byte [ebp + eax + 2]
shl edi, 8
or edi, esi
movzx ebp, byte [ebp + eax + 3]
or ebp, edi
mov dword [esp + 0x20], ebp
cmp ebp, 0x10000
jle 0x581c5d
jmp 0x58231b
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x20]
lea esi, [ebp + 4]
mov edi, dword [ebx + 0x1a0]
sub edi, dword [ebx + 0x1a8]
cmp edi, esi
jge 0x581cb1
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.0057e310
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x581c52
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
nop
mov byte [ebx + 0x1ac], 0
nop
mov edx, dword [ebx + 0x1a4]
mov ebp, dword [ebx + 0x19c]
mov edi, dword [ebx + 0x1a0]
mov eax, dword [ebx + 0x1a8]
sub edi, eax
cmp esi, edi
jle 0x582314
lea ecx, [edi + eax]
cmp ecx, edx
ja 0x5824cc
cmp eax, ecx
ja 0x5824c7
mov dword [ebx + 0x1a8], ecx
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [ebp + eax]
test edi, edi
jle 0x581d0d
mov byte [ebx + 0x1ac], 0xff
jbe 0x5824be
mov dword [esp + 0x24], edi
mov dword [esp + 0x64], edx
movzx eax, byte [ebp + eax]
cmp al, 0xb
ja 0x58218d
cmp al, 2
ja 0x581f7f
test al, al
jne 0x581f38
lea eax, [0x6c9c50]
lea ecx, [0x8324a4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], eax
lea edx, [0x633cc0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
call fcn.004429e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
call fcn.0045b690
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
call ecx
movzx eax, byte [esp + 0x10]
test al, al
je 0x581e08
mov eax, dword [esp + 0x28]
test eax, eax
je 0x581ddc
mov eax, dword [eax + 4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x7c
ret
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.00581150
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
lea edx, [0x645620]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00408fa0
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0xc]
test cl, cl
jne 0x581ebd
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x80]
mov dword [edx + 0xc8], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x581eac
mov eax, dword [esp + 0x50]
mov dword [edx + 0xcc], eax
mov eax, dword [edx + 0xc8]
mov ecx, dword [edx + 0xcc]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
lea edi, [edx + 0xcc]
mov eax, dword [esp + 0x50]
call fcn.0045ace0
jmp 0x581e78
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], edx
lea eax, [0x63eb20]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x581f26
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
lea ecx, [0x6c8090]
mov edx, dword [esp + 0x80]
mov dword [edx + 0xc8], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x581f16
mov dword [edx + 0xcc], eax
jmp 0x581e78
lea edi, [edx + 0xcc]
call fcn.0045ace0
jmp 0x581e78
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045ace0
mov eax, ecx
jmp 0x581eee
cmp al, 1
jne 0x581f5e
lea eax, [0x665b40]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9bb0]
jmp 0x581d46
lea eax, [0x663ae0]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9cf0]
jmp 0x581d46
cmp al, 5
ja 0x582115
cmp al, 4
jne 0x581fd6
cmp word [ebx + 0x24], 0x304
jne 0x581fbc
lea eax, [0x657200]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
lea ecx, [0x6c9cb0]
mov edi, dword [esp + 0x24]
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x581d46
lea eax, [0x6447e0]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
lea ecx, [0x6c9c90]
jmp 0x581fad
cmp al, 5
jne 0x581fec
lea eax, [0x6c9c10]
lea ecx, [0x8324a4]
jmp 0x581d46
mov dword [esp], ebx
mov byte [esp + 4], 0xa
call fcn.00581150
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
lea edx, [0x645620]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00408fa0
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0xc]
test cl, cl
jne 0x58209a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x80]
mov dword [edx + 0xc8], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x582089
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xcc], eax
mov eax, dword [edx + 0xc8]
mov ecx, dword [edx + 0xcc]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
lea edi, [edx + 0xcc]
mov eax, dword [esp + 0x4c]
call fcn.0045ace0
jmp 0x582055
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], edx
lea eax, [0x63eb20]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x582103
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
lea ecx, [0x6c8090]
mov edx, dword [esp + 0x80]
mov dword [edx + 0xc8], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x5820f3
mov dword [edx + 0xcc], eax
jmp 0x582055
lea edi, [edx + 0xcc]
call fcn.0045ace0
jmp 0x582055
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0045ace0
mov eax, ecx
jmp 0x5820cb
cmp al, 8
je 0x58216c
cmp al, 0xb
jne 0x581fec
cmp word [ebx + 0x24], 0x304
jne 0x582152
lea eax, [0x6503a0]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
lea ecx, [0x6c9b10]
mov edi, dword [esp + 0x24]
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x581d46
lea eax, [0x6444e0]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
lea ecx, [0x6c9af0]
jmp 0x582143
lea eax, [0x644660]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9bf0]
jmp 0x581d46
cmp al, 0xf
ja 0x58226f
cmp al, 0xd
ja 0x582223
cmp al, 0xc
je 0x582202
cmp word [ebx + 0x24], 0x304
jne 0x5821d3
lea eax, [0x657160]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
lea ecx, [0x6c9b50]
mov edi, dword [esp + 0x24]
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x581d46
lea eax, [0x654100]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 0x80]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
lea ecx, [0x6c9b30]
mov eax, edx
jmp 0x5821c4
lea eax, [0x644900]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9d10]
jmp 0x581d46
cmp al, 0xe
jne 0x582239
lea eax, [0x6c9cd0]
lea ecx, [0x8324a4]
jmp 0x581d46
lea eax, [0x650420]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 0x80]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
mov edi, dword [esp + 0x24]
lea eax, [0x6c9b90]
mov ecx, edx
jmp 0x581d46
cmp al, 0x14
ja 0x5822c4
cmp al, 0x10
je 0x5822a3
cmp al, 0x14
jne 0x581fec
lea eax, [0x6446c0]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9c30]
jmp 0x581d46
lea eax, [0x6445a0]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9bd0]
jmp 0x581d46
cmp al, 0x16
je 0x5822f3
cmp al, 0x18
jne 0x581fec
lea eax, [0x644780]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9c70]
jmp 0x581d46
lea eax, [0x644540]
mov dword [esp], eax
call fcn.0040b4f0
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x24]
lea eax, [0x6c9b70]
jmp 0x581d46
mov edi, esi
jmp 0x581cdc
mov dword [esp], ebx
mov byte [esp + 4], 0x50
call fcn.00580f50
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00408b00
mov eax, dword [esp + 4]
lea ecx, [0x633240]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea eax, [0x6c3a7c]
mov dword [esp + 0x78], eax
lea eax, [0x682ad3]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a95f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
lea edx, [0x645620]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00408fa0
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0xc]
test cl, cl
jne 0x582443
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
mov dword [edx + 0xc8], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x582432
mov eax, dword [esp + 0x54]
mov dword [edx + 0xcc], eax
mov eax, dword [edx + 0xc8]
mov ecx, dword [edx + 0xcc]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
lea edi, [edx + 0xcc]
mov eax, dword [esp + 0x54]
call fcn.0045ace0
jmp 0x5823fe
mov dword [esp + 0x60], eax
mov dword [esp + 0x38], edx
lea eax, [0x63eb20]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x5824ac
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
lea ecx, [0x6c8090]
mov edx, dword [esp + 0x80]
mov dword [edx + 0xc8], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x58249c
mov dword [edx + 0xcc], eax
jmp 0x5823fe
lea edi, [edx + 0xcc]
call fcn.0045ace0
jmp 0x5823fe
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x60]
call fcn.0045ace0
mov eax, ecx
jmp 0x582474
xor eax, eax
mov ecx, edi
call fcn.0045ad60
call fcn.0045adc0
call fcn.0045ada0
mov ecx, edi
call fcn.0045adc0
nop
call fcn.00459790
jmp fcn.00581b90