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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x587ace
sub esp, 0x94
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x5877f2
mov edx, dword [esp + 0xa4]
cmp word [edx], 0x7069
jne 0x5877a6
mov ebx, dword [esp + 0xb0]
test ebx, ebx
je 0x58779d
mov eax, dword [esp + 0xac]
xor ebp, ebp
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea esi, [0x598780]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebp
test ebx, ebx
jne 0x587505
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.00460deb
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x58731e
cmp word [edx], 0x7069
jne 0x587a7d
lea eax, [0xaee300]
mov dword [esp], eax
call fcn.0040bd00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x587314
mov dword [edi], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x587301
mov dword [edi + 0xc], eax
lea eax, [0xc87500]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], edi
lea ecx, [0xa92440]
mov dword [esp], ecx
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x5872ef
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x94
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.00460b40
mov eax, ecx
jmp 0x5872b5
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.00460b40
mov edi, edx
jmp 0x58727e
call fcn.00460b40
jmp 0x587262
mov dword [esp + 0x34], ebp
cmp ecx, 3
je 0x587478
cmp ecx, 4
jne 0x587a79
mov dword [esp], edx
mov dword [esp + 4], ecx
lea eax, [0xb8f8f4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.00402910
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5873eb
mov eax, dword [esp + 0xa4]
cmp dword [eax], 0x34706374
jne 0x5873de
lea eax, [0xb09840]
mov dword [esp], eax
call fcn.0040bd00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x5873d7
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x5873c7
mov dword [edi + 0x10], eax
lea eax, [0xc87540]
jmp 0x587284
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.00460b40
mov edi, edx
jmp 0x5873bc
call fcn.00460b40
jmp 0x58739d
cmp dword [eax], 0x36706374
je 0x58736d
jmp 0x587a6e
mov eax, dword [esp + 0xa4]
cmp dword [eax], 0x34706475
jne 0x58746b
lea eax, [0xb098c0]
mov dword [esp], eax
call fcn.0040bd00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x587464
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x587454
mov dword [edi + 0x10], eax
lea eax, [0xc87560]
jmp 0x587284
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.00460b40
mov edi, edx
jmp 0x587449
call fcn.00460b40
jmp 0x58742a
cmp dword [eax], 0x36706475
je 0x5873fa
jmp 0x587a6e
mov dword [esp], edx
mov dword [esp + 4], ecx
lea eax, [0xb8e89a]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
call fcn.00402910
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5874d3
mov eax, dword [esp + 0xa4]
movzx ecx, word [eax]
cmp cx, 0x7069
jne 0x5874be
cmp byte [eax + 2], 0x34
je 0x58722e
cmp cx, 0x7069
jne 0x587a6e
cmp byte [eax + 2], 0x36
je 0x58722e
jmp 0x587a6e
mov eax, dword [esp + 0xa4]
cmp word [eax], 0x6374
jne 0x5874eb
cmp byte [eax + 2], 0x70
je 0x58736d
cmp word [eax], 0x6475
jne 0x587a6e
cmp byte [eax + 2], 0x70
je 0x5873fa
jmp 0x587a6e
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], eax
mov ebp, dword [esp + 0x98]
mov dword [esp], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.00588f70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test ebx, ebx
jne 0x587767
mov dword [esp + 0x38], ecx
cmp ecx, 1
je 0x587713
xor ebx, ebx
test bl, bl
je 0x58770c
lea edi, [esp + 0x80]
mov ebx, eax
xor eax, eax
call fcn.00460deb
mov ecx, dword [0x10e4fe8]
mov ebp, dword [0x10e4fec]
mov eax, ebx
mov ebx, dword [0x10e4ff0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0x38]
lea ebx, [ecx + 1]
cmp edx, ebx
jb 0x5876d6
mov ebp, dword [0x10fd360]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*4]
test ebp, ebp
jne 0x58769c
lea esi, [esp + 0x80]
call fcn.004612ce
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x587693
mov ebp, dword [esp + 0xa4]
lea esi, [ebp + ecx - 1]
cmp byte [esi], 0x34
jne 0x587687
test ecx, ecx
lea esi, [0xbd5198]
je 0x587683
lea ecx, [ebp + ecx - 1]
cmp byte [ecx], 0x36
jne 0x587683
lea ecx, [0xbd519c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.00586780
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebp
add esp, 0x94
ret
mov ecx, esi
jmp 0x587619
test ecx, ecx
mov esi, 0
jmp 0x587608
mov ebp, dword [esp + 0xa4]
jmp 0x587689
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], edx
lea eax, [0xaee300]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call fcn.00411810
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
jmp 0x5875dd
lea ebp, [0xaee300]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00447080
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x38]
jmp 0x5875bd
mov ebx, ecx
jmp 0x5875dd
mov dword [esp + 0x58], eax
mov dword [esp + 0x44], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [0x10d9280]
mov edx, dword [0x10d9284]
mov ebx, dword [0x10d9288]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.005830b0
movzx ebx, byte [esp + 0x18]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
jmp 0x58756d
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebp
add esp, 0x94
ret
xor ebx, ebx
xor eax, eax
jmp 0x5871c8
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00409480
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea ecx, [0xc84100]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0x94
ret
cmp ecx, 3
je 0x5879c0
cmp ecx, 4
je 0x587809
mov edx, dword [esp + 0xa4]
jmp 0x5877a6
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0xb8f8f4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.00402910
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x58799f
mov ecx, dword [esp + 0xa4]
cmp dword [ecx], 0x34706374
jne 0x587987
mov edx, dword [esp + 0xb0]
test edx, edx
jne 0x587877
xor eax, eax
xor edx, edx
xor ebx, ebx
mov ecx, dword [esp + 0xa8]
mov ebp, eax
mov eax, ebx
mov ebx, edx
mov edx, dword [esp + 0xa4]
jmp 0x5871ca
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00586ad0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x587951
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xa0]
mov dword [esp + 8], edx
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call fcn.005899e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x58791b
mov eax, ecx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0xa4]
jmp 0x58785e
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edx
add esp, 0x94
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], esi
add esp, 0x94
ret
cmp dword [ecx], 0x36706374
je 0x58784d
mov ecx, dword [esp + 0xa8]
jmp 0x587800
mov ecx, dword [esp + 0xa4]
cmp dword [ecx], 0x34706475
je 0x58784d
cmp dword [ecx], 0x36706475
je 0x58784d
jmp 0x587993
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0xb8e89a]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.00402910
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x587a43
mov ecx, dword [esp + 0xa4]
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x587a1c
cmp byte [ecx + 2], 0x34
jne 0x587a17
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
jmp 0x5871b2
cmp dx, 0x7069
jne 0x587a37
cmp byte [ecx + 2], 0x36
jne 0x587a37
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
jmp 0x5871b2
mov ecx, dword [esp + 0xa8]
jmp 0x587800
mov ecx, dword [esp + 0xa4]
cmp word [ecx], 0x6374
jne 0x587a5b
cmp byte [ecx + 2], 0x70
je 0x58784d
cmp word [ecx], 0x6475
jne 0x587a37
cmp byte [ecx + 2], 0x70
je 0x58784d
jmp 0x587a37
mov ecx, dword [esp + 0xa8]
mov edx, eax
jmp 0x587a7d
mov eax, edx
jmp 0x587a6e
mov dword [esp], 0
lea eax, [0xb9f0ce]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.0044a440
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409480
mov eax, dword [esp + 8]
lea ecx, [0xaa9660]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00433120
nop
call fcn.0045f5f0
jmp fcn.00587170