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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5829d4
sub esp, 0x84
mov eax, dword [esp + 0x88]
cmp byte [eax + 0x49], 0xff
je 0x58223f
lea eax, [0x7bd490]
mov dword [esp], eax
call fcn.0046b3c0
mov eax, dword [esp + 8]
lea ecx, [0x5e6fa0]
cmp dword [esp + 4], ecx
je 0x5821d1
lea eax, [0x5fc440]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0xac]
cmp ecx, edx
jg 0x5821ee
ja 0x5829ce
mov dword [eax + 0x28], ecx
jmp 0x582238
lea eax, [0x5f05c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0x78]
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x582228
mov dword [edi + 0x24], eax
jmp 0x582236
lea edx, [edi + 0x24]
mov ecx, edi
mov edi, edx
call fcn.00463860
mov edi, ecx
mov eax, edi
mov edx, dword [eax + 0x28]
xor ecx, ecx
jmp 0x582270
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x84
ret
mov dword [ebp + ecx*4], 0xffffffff
inc ecx
cmp ecx, edx
jge 0x582283
mov ebx, dword [eax + 0x28]
mov ebp, dword [eax + 0x24]
cmp ecx, ebx
jb 0x582267
jmp 0x5829c5
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x5822db
nop
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5822af
mov ecx, dword [esp + 0x90]
mov dword [eax + 0x18], ecx
jmp 0x5822c2
lea edi, [eax + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x90]
call fcn.00463860
mov eax, ecx
mov byte [eax + 0x1c], 0
mov dword [eax + 0x20], 0
lea ecx, [eax + 0x14]
lea edx, [0x675534]
jmp 0x58235b
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x58231e
nop
mov edx, dword [esp + 0x98]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 8], edx
mov edx, dword [0x7e34c0]
test edx, edx
jne 0x582309
mov dword [eax], ecx
jmp 0x582314
mov edi, eax
mov eax, ecx
call fcn.00463860
mov eax, edi
lea edx, [0x675510]
mov ecx, eax
jmp 0x58235b
nop
mov ecx, dword [esp + 0xa4]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x58233f
mov ecx, dword [esp + 0xa0]
mov dword [eax + 0xc], ecx
jmp 0x582352
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0xa0]
call fcn.00463860
mov eax, ecx
lea ecx, [eax + 0xc]
lea edx, [0x675558]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x20], edx
mov eax, dword [edx + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
jne 0x582394
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x5823c7
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebp, dword [esp + 0xa8]
lea esi, [ebp + ecx]
mov dword [esp + 4], esi
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0xa8]
test ebp, ebp
jne 0x5823e3
mov esi, eax
mov edi, 0xffffffff
jmp 0x582418
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], ebp
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x34]
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], edi
mov edx, dword [esp + 0x88]
mov ebx, dword [edx + 0xc]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
mov ebx, dword [ebx]
cmp edi, esi
jbe 0x5829bc
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
lea edi, [esi + esi*8]
test ebp, ebp
je 0x582449
xor ebx, ebx
jmp 0x582482
mov ecx, dword [ebx + edi*4 + 8]
mov edx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 8], cl
call fcn.005810f0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x3c]
test bl, bl
je 0x5824c4
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x582491
xor ebx, ebx
jmp 0x5824c6
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x3c]
jmp 0x5824c6
xor ebx, ebx
test bl, bl
jne 0x5824d7
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
jmp 0x582598
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], edx
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x5825bd
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x74]
mov dword [esp], ebp
mov esi, dword [esp + 0xa8]
add ecx, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x74]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
lea edi, [esi + eax]
mov dword [esp + 4], edi
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x14]
mov ebp, dword [esp + 0x74]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 4], esi
call ebx
mov eax, dword [esp + 0x88]
mov esi, dword [eax + 0x3c]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
jmp 0x5826f4
xor eax, eax
test al, al
je 0x58269d
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0xb4]
lea ebx, [edx + ecx]
mov ebp, dword [eax + 0x24]
mov esi, dword [esp + 0xb8]
cmp esi, ebx
jb 0x5825ef
mov edi, dword [esp + 0xb0]
jmp 0x582641
mov dword [esp + 0x80], ebp
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
lea eax, [0x5f05c0]
mov dword [esp + 0x10], eax
call fcn.0044a320
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x80]
mov edi, eax
mov esi, ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x80], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.00464180
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.00582090
mov eax, dword [esp + 0x80]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc4], eax
add esp, 0x84
ret
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.00582090
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x84
ret
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, edi
mov eax, dword [esp + 0x5c]
mov edi, ebx
mov ebx, ebp
mov ebp, edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x34], ebx
mov edx, dword [edx + 0xc]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
cmp esi, edx
jae 0x5829b3
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ecx
lea edx, [esi + esi*8]
lea esi, [ebx + edx*4]
mov dword [esp + 0x7c], esi
mov esi, dword [ebx + edx*4 + 4]
mov dword [esp + 0x50], esi
lea esi, [ebx + edx*4]
movzx esi, byte [esi]
xchg esi, eax
cmp al, 5
xchg esi, eax
ja 0x58281b
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
xchg esi, eax
cmp al, 2
xchg esi, eax
ja 0x5827c6
xchg esi, eax
cmp al, 1
xchg esi, eax
jbe 0x582789
mov edx, dword [ebx + edx*4 + 8]
mov ebx, dword [esp + 0x78]
mov esi, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x24]
cmp edx, esi
jge 0x582768
jae 0x5829aa
mov dword [ebx + edx*4], ebp
mov esi, dword [esp + 0x50]
mov ebx, edi
mov edi, ecx
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
jmp 0x5826d1
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00582ff0
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
jmp 0x5826d1
xchg esi, eax
cmp al, 3
xchg esi, eax
jne 0x582929
mov ecx, dword [ebx + edx*4 + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
mov byte [esp + 8], cl
call fcn.005810f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x582922
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
jmp 0x5826d1
xchg esi, eax
cmp al, 7
xchg esi, eax
ja 0x582876
xchg esi, eax
cmp al, 6
xchg esi, eax
jne 0x58284a
mov esi, dword [esp + 0x50]
mov ebx, edi
mov edi, ecx
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
jmp 0x5826d1
lea eax, [ebx + edx*4]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.0057b680
cmp dword [esp + 8], 0xffffffff
je 0x582963
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x58]
jmp 0x5828c1
xchg esi, eax
cmp al, 8
xchg esi, eax
jne 0x58289a
mov esi, dword [ebx + edx*4 + 0x10]
mov edx, dword [ebx + edx*4 + 0xc]
test esi, esi
jbe 0x582997
mov ebx, dword [esp + 0x30]
cmp dword [edx], ebx
je 0x5828c1
jmp 0x58296a
xchg esi, eax
cmp al, 9
xchg esi, eax
jne 0x5828a7
mov ebx, dword [esp + 0x30]
jmp 0x5828c1
xchg esi, eax
cmp al, 0xa
xchg esi, eax
jne 0x58297f
mov edx, dword [esp + 0x30]
cmp edx, 0xa
je 0x582978
mov ebx, edx
test ecx, ecx
je 0x582971
lea edx, [ebp + ecx]
mov ebp, dword [esp + 0x34]
cmp ebp, 0xffffffff
jne 0x5828de
mov eax, ebp
mov ecx, dword [esp + 0x28]
jmp 0x582915
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebp, dword [esp + 0x28]
lea esi, [edx + ebp]
mov dword [esp + 4], esi
call ecx
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
mov ebp, ebx
mov ecx, eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
jmp 0x5826d1
xor eax, eax
jmp 0x5825bf
xchg esi, eax
cmp al, 4
xchg esi, eax
jne 0x58295c
mov edx, dword [esp + 0x78]
mov ebx, dword [edx + 0x28]
mov esi, dword [edx + 0x24]
test ebx, ebx
je 0x582952
mov dword [esi], 0
mov ecx, dword [edx + 0x28]
mov ebx, dword [edx + 0x24]
cmp ecx, 1
jbe 0x5829a0
mov dword [ebx + 4], ebp
mov eax, 1
jmp 0x5825bf
xor eax, eax
jmp 0x5825bf
xor eax, eax
jmp 0x5825bf
xor eax, eax
jmp 0x5825bf
xor eax, eax
jmp 0x5825bf
xor eax, eax
jmp 0x5825bf
lea eax, [0x5f0dc0]
mov dword [esp], eax
lea eax, [0x674690]
mov dword [esp + 4], eax
call fcn.00435790
xor eax, eax
mov ecx, eax
call fcn.004638e0
mov eax, 1
call fcn.004638e0
mov eax, edx
mov ecx, esi
call fcn.004638f0
mov eax, esi
mov ecx, edx
call fcn.004638e0
mov eax, esi
mov ecx, edi
call fcn.004638e0
mov eax, ecx
mov ecx, ebx
call fcn.004638e0
call fcn.00463920
nop
call fcn.00462450
jmp fcn.00582170