Function at 0x5c0410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66b194
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], edi
call fcn.004b7220
lea ecx, [esp + 0x50]
mov dword [esp + 0x310], 0
call fcn.00471200
lea ecx, [esp + 0x68]
mov byte [esp + 0x310], 1
call fcn.0051c710
lea ecx, [esp + 0x80]
mov byte [esp + 0x310], 2
call fcn.00471200
mov eax, dword [esi]
add esi, 4
mov dword [edi + 0x30], eax
mov ecx, dword [esi]
add esi, 4
mov dword [esp + 0x28], esi
lea esi, [edi + 0x38]
mov dword [edi + 0x34], ecx
mov ebx, dword [esi + 0x10]
mov byte [esp + 0x310], 3
cmp dword [esi + 0xc], ebx
jbe 0x5c04c7
call fcn.00615e0c
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0xc0], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esi + 0x10]
jbe 0x5c04e1
call fcn.00615e0c
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push ebx
push ecx
push edx
push eax
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0058a7f0
mov eax, dword [edi + 0x30]
push 0
push eax
mov ecx, esi
call fcn.005be670
cmp dword [edi + 0x30], 0
mov dword [esp + 0x98], 0
jle 0x5c0fad
mov dword [esp + 0x24], 0
jmp 0x5c0530
call fcn.005bf700
mov edx, dword [esp + 0x28]
mov esi, edx
add edx, 0x20
mov ecx, 8
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, edx
lea edi, [eax + 0x20]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov edi, dword [eax + 0xb0]
lea esi, [eax + 0xa0]
sub edx, 0xffffff80
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
cmp dword [esi + 0xc], edi
jbe 0x5c0574
call fcn.00615e0c
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0xf4], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x5c058a
call fcn.00615e0c
mov edx, dword [esp + 0xf4]
mov eax, dword [esi]
push edi
push edx
push ebx
push eax
lea eax, [esp + 0x130]
push eax
mov ecx, esi
call fcn.005bf150
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx + 0x34]
sub esp, 0x2c
mov eax, esp
mov dword [esp + 0x44], esp
push 4
lea edi, [eax + 0x14]
call fcn.00613a23
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x5c05cd
mov dword [eax], edi
jmp 0x5c05cf
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
push ebx
mov ecx, esi
mov byte [esp + 0x340], 3
call fcn.005c0160
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x34], 0
mov dword [esp + 0x34], 0
jle 0x5c0aed
mov dword [esp + 0x1c], 0
jmp 0x5c0610
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0xb0]
sub ecx, dword [esi + 0xac]
add esi, 0xa0
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x34], eax
jb 0x5c0642
call fcn.00615e0c
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov cl, byte [edi]
inc edi
mov byte [esi], cl
mov edx, dword [edi]
add edi, 4
mov dword [esi + 4], edx
mov eax, dword [edi]
add edi, 4
mov dword [esi + 8], eax
mov ecx, dword [edi]
add edi, 4
mov dword [esi + 0x10], ecx
mov edx, dword [edi]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
add edi, 4
mov ebx, eax
cmp ecx, eax
jbe 0x5c068d
call fcn.00615e0c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xdc], edx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jbe 0x5c06a5
call fcn.00615e0c
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
push ebx
push eax
push ecx
push edx
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x4c]
call fcn.00559ec0
mov edx, dword [esp + 0xd0]
mov ecx, dword [esi + 8]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xe4]
push ecx
lea ecx, [esp + 0x48]
mov dword [eax + 8], edx
call fcn.00559f90
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov ebx, eax
cmp ecx, eax
jbe 0x5c0713
call fcn.00615e0c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xfc], edx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jbe 0x5c072b
call fcn.00615e0c
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
push ebx
push eax
push ecx
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x64]
call fcn.004a0990
mov eax, dword [esi + 0x10]
push 0
push eax
lea ecx, [esp + 0x58]
call fcn.0049fb10
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov ebx, eax
cmp ecx, eax
jbe 0x5c0779
call fcn.00615e0c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xb8], edx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jbe 0x5c0791
call fcn.00615e0c
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
push ebx
push eax
push ecx
push edx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x7c]
call fcn.00598820
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.0054ad80
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov ebx, eax
cmp ecx, eax
jbe 0x5c07f9
call fcn.00615e0c
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0xec], edx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jbe 0x5c0814
call fcn.00615e0c
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
push ebx
push eax
push ecx
push edx
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x94]
call fcn.004a0990
mov eax, dword [esi + 0x10]
push 0
push eax
lea ecx, [esp + 0x88]
call fcn.0049fb10
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x5c086f
call fcn.00615e0c
mov eax, dword [esi + 8]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x44]
add edx, edx
add edx, edx
push edx
push edi
push eax
call fcn.00613630
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0x68]
mov eax, dword [esi + 8]
sar edx, 2
add esp, 0xc
lea ecx, [eax + eax*2]
lea edi, [edi + ecx*4]
test edx, edx
ja 0x5c08a5
call fcn.00615e0c
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x5c]
add eax, eax
add eax, eax
push eax
push edi
push ecx
call fcn.00613630
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x80]
mov edx, dword [esi + 0x10]
sar eax, 3
add esp, 0xc
lea edi, [edi + edx*4]
test eax, eax
ja 0x5c08db
call fcn.00615e0c
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x74]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edi
push edx
call fcn.00613630
mov ecx, dword [esp + 0x9c]
sub ecx, dword [esp + 0x98]
mov eax, dword [esi + 0xc]
sar ecx, 2
add esp, 0xc
lea edi, [edi + eax*8]
test ecx, ecx
ja 0x5c0913
call fcn.00615e0c
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x8c]
add edx, edx
add edx, edx
push edx
push edi
push eax
call fcn.00613630
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x24]
add esp, 0xc
lea edx, [edi + ecx*4]
mov dword [esp + 0x28], edx
cmp dword [esi + 0x20], ebx
jbe 0x5c0943
call fcn.00615e0c
mov eax, dword [esi + 0x14]
mov dword [esp + 0xe4], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x24]
jbe 0x5c095e
call fcn.00615e0c
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
push ebx
push ecx
lea edi, [esi + 0x14]
push edx
push eax
lea eax, [esp + 0x148]
push eax
mov ecx, edi
call fcn.005bdc00
mov edx, dword [esp + 0xa0]
mov ecx, dword [esi + 0x10]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xb8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xc0]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xc4]
push ecx
mov ecx, edi
mov dword [eax + 0x10], edx
call fcn.005be5a0
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jbe 0x5c0ad2
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x20]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x5c09f2
call fcn.00615e0c
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov edi, dword [esi + 0x20]
add edi, dword [esp + 0x30]
sar ecx, 2
cmp ebx, ecx
jb 0x5c0a0d
call fcn.00615e0c
mov ecx, dword [esp + 0x90]
sub ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + ebx*4]
sar ecx, 2
mov dword [esp + 0x9c], eax
cmp ebx, ecx
jb 0x5c0a35
call fcn.00615e0c
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + ebx*4]
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x9c], eax
jb 0x5c0a6d
call fcn.00615e0c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x9c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x44]
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov edx, dword [esp + 0x78]
sub edx, dword [esp + 0x74]
sar edx, 3
cmp ecx, edx
jb 0x5c0aa6
call fcn.00615e0c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
mov edx, dword [eax + ecx*8]
add dword [esp + 0x30], 0x14
mov dword [edi + 0xc], edx
mov eax, dword [eax + ecx*8 + 4]
mov dword [edi + 0x10], eax
fld dword [edi + 0x10]
fmul qword [0x679b40]
inc ebx
fstp dword [edi + 0x10]
cmp ebx, dword [esi + 0x10]
jb 0x5c09d2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x1c], 0x2c
inc eax
cmp eax, dword [ecx + 0x34]
mov dword [esp + 0x34], eax
jl 0x5c0610
mov esi, dword [esp + 0x20]
mov ebx, dword [esi + 0xc8]
add esi, 0xb8
cmp dword [esi + 0xc], ebx
jbe 0x5c0b07
call fcn.00615e0c
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0xc8], edx
cmp edi, dword [esi + 0x10]
jbe 0x5c0b1d
call fcn.00615e0c
mov ecx, dword [esp + 0xc8]
mov eax, dword [esi]
push ebx
push ecx
push edi
push eax
lea edx, [esp + 0x138]
push edx
mov ecx, esi
call fcn.0058a7f0
mov dword [esp + 0x194], 0xf
mov dword [esp + 0x190], 0
mov byte [esp + 0x180], 0
mov eax, dword [esp + 0x20]
add eax, 0x20
mov byte [esp + 0x310], 5
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5c0b70
mov edi, dword [esp + 0x20]
sub eax, ecx
lea ecx, [esp + 0x17c]
push ecx
push eax
add edi, 0x20
push edi
call fcn.00587950
lea edx, [esp + 0x188]
push edx
call fcn.005899a0
mov ebx, dword [esp + 0x1a0]
add esp, 0x10
mov eax, ebx
cmp ebx, 3
jb 0x5c0bb2
mov eax, 3
cmp dword [esp + 0x194], 0x10
mov ecx, dword [esp + 0x180]
jae 0x5c0bca
lea ecx, [esp + 0x180]
push eax
push 0x694ad4
push ecx
call fcn.0042f860
add esp, 0xc
test eax, eax
jne 0x5c0bec
cmp ebx, 3
jb 0x5c0eee
cmp ebx, 3
setne al
xor ebx, ebx
cmp eax, ebx
jne 0x5c0eee
lea ecx, [esp + 0x1b4]
call fcn.00588730
lea eax, [esp + 0xc0]
push eax
push edi
lea ecx, [esp + 0x1bc]
push ecx
mov ecx, dword [0x712368]
mov byte [esp + 0x31c], 6
call fcn.005d37c0
test al, al
je 0x5c0ed8
lea ecx, [esp + 0x104]
call fcn.005892e0
push 4
mov byte [esp + 0x314], 7
call fcn.00613a23
add esp, 4
cmp eax, ebx
je 0x5c0c5b
lea edx, [esp + 0xa0]
mov dword [eax], edx
jmp 0x5c0c5d
xor eax, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov eax, dword [esp + 0xc0]
push eax
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x314], 9
call fcn.005889b0
push eax
lea ecx, [esp + 0x10c]
call fcn.00589830
mov dword [esp + 0x1b0], 0xf
mov dword [esp + 0x1ac], ebx
mov byte [esp + 0x19c], 0
lea ecx, [esp + 0x198]
push ecx
push edi
mov byte [esp + 0x318], 0xa
call fcn.005879a0
add esp, 8
mov dword [esp + 0x178], 0xf
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x104]
mov byte [esp + 0x310], 0xb
mov dword [esp + 0x1c], ebx
call fcn.00589280
test eax, eax
jbe 0x5c0de6
nop
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x108]
call fcn.005892a0
mov edi, eax
cmp dword [edi + 0x14], ebx
je 0x5c0dc9
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x16c]
call fcn.00417560
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x16c]
call fcn.00416cc0
cmp dword [esp + 0x178], 0x10
mov eax, dword [esp + 0x164]
jae 0x5c0d6b
lea eax, [esp + 0x164]
mov ecx, dword [0x7123dc]
push eax
call fcn.0055f4e0
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
cmp edx, ebx
jne 0x5c0d86
xor ecx, ecx
jmp 0x5c0d8e
mov ecx, dword [esi + 0x14]
sub ecx, edx
sar ecx, 2
mov edi, dword [esi + 0x10]
mov ebx, edi
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x5c0da6
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x5c0dc7
cmp edx, edi
jbe 0x5c0daf
call fcn.00615e0c
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
lea edx, [esp + 0x14c]
push edx
mov ecx, esi
call fcn.0051c770
xor ebx, ebx
mov edi, dword [esp + 0x1c]
inc edi
lea ecx, [esp + 0x104]
mov dword [esp + 0x1c], edi
call fcn.00589280
cmp edi, eax
jb 0x5c0d10
mov edi, 0x10
cmp dword [esp + 0x178], edi
jb 0x5c0e04
mov eax, dword [esp + 0x164]
push eax
call fcn.00613a18
add esp, 4
mov esi, 0xf
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov byte [esp + 0x164], 0
cmp dword [esp + 0x1b0], edi
jb 0x5c0e38
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00613a18
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1ac], ebx
mov byte [esp + 0x19c], 0
cmp eax, ebx
je 0x5c0e9f
mov edi, dword [esp + 0xb0]
cmp eax, edi
je 0x5c0e96
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x5c0e78
mov eax, dword [esi - 0x14]
push eax
call fcn.00613a18
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x5c0e67
mov eax, dword [esp + 0xac]
push eax
call fcn.00613a18
add esp, 4
mov eax, dword [esp + 0xa0]
push eax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
call fcn.00613a18
add esp, 4
lea ecx, [esp + 0x104]
mov byte [esp + 0x310], 6
call fcn.00589300
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x310], 5
call fcn.00588b60
jmp 0x5c0f4a
mov ecx, dword [0x7123dc]
push edi
call fcn.0055f4e0
mov edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
test edx, edx
jne 0x5c0f09
xor ecx, ecx
jmp 0x5c0f11
mov ecx, dword [esi + 0x14]
sub ecx, edx
sar ecx, 2
mov edi, dword [esi + 0x10]
mov ebx, edi
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x5c0f29
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x5c0f4a
cmp edx, edi
jbe 0x5c0f32
call fcn.00615e0c
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
lea edx, [esp + 0xdc]
push edx
mov ecx, esi
call fcn.0051c770
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x48]
sub eax, dword [edi + 0x44]
mov esi, dword [esp + 0x24]
sar eax, 2
cmp esi, eax
jb 0x5c0f64
call fcn.00615e0c
mov ecx, dword [edi + 0x44]
mov edx, dword [esp + 0x20]
mov dword [ecx + esi*4], edx
cmp dword [esp + 0x194], 0x10
mov byte [esp + 0x310], 3
jb 0x5c0f90
mov eax, dword [esp + 0x180]
push eax
call fcn.00613a18
add esp, 4
mov eax, dword [esp + 0x98]
inc eax
mov dword [esp + 0x98], eax
cwde
cmp eax, dword [edi + 0x30]
mov dword [esp + 0x24], eax
jl 0x5c0530
mov eax, dword [esp + 0x8c]
xor esi, esi
cmp eax, esi
je 0x5c0fc3
push eax
call fcn.00613a18
add esp, 4
mov ecx, dword [esp + 0x80]
push ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
call fcn.00613a18
mov eax, dword [esp + 0x78]
add esp, 4
cmp eax, esi
je 0x5c0ff9
push eax
call fcn.00613a18
add esp, 4
mov edx, dword [esp + 0x68]
push edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call fcn.00613a18
mov eax, dword [esp + 0x60]
add esp, 4
cmp eax, esi
je 0x5c1026
push eax
call fcn.00613a18
add esp, 4
mov eax, dword [esp + 0x50]
push eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.00613a18
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, esi
je 0x5c1050
push eax
call fcn.00613a18
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.00613a18
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.00613e6e
mov esp, ebp
pop ebp
ret 8