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

Disassembly:
sub esp, 0x2c8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x2c4], eax
mov eax, dword [esp + 0x2d0]
mov ecx, closesocket
push ebx
push ebp
mov ebp, dword [esp + 0x2d4]
push esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2e4]
push edi
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 0x3ac24]
push ecx
mov dword [esp + 0x18], eax
lea edi, [eax + 0xe0]
mov eax, dword [ebp + 0x3ac20]
push eax
push ecx
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x84], ebp
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x8c], 1
mov byte [esp + 0x48], 1
mov byte [esp + 0x70], 0
call fcn.10117600
mov al, byte [ebp + 0x3abf0]
add esp, 0x14
test al, al
je 0x10155a90
cmp al, 2
je 0x10155a90
mov eax, dword [ebp]
cmp dword [eax + 0xc4a8], 0
je 0x10155a8c
imul ecx, dword [ebp + 0x9158c], 0x3348
mov eax, dword [ebp + 0x916a4]
cmp dword [ecx + eax + 0x3340], 0
jne 0x10155a90
xor al, al
jmp 0x10155a92
mov al, 1
mov byte [esp + 0x13], al
mov edx, 1
mov byte [esp + 0x1c], al
mov ebx, 0xf
mov eax, dword [ebp + 0x3e7a8]
push 0x54
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xc
mov eax, 4
mov dword [esp + 0x84], ecx
cmove eax, edx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x80], eax
sete byte [esp + 0x48]
mov eax, 0xc
mov dword [esp + 0x50], 0xffffffff
cmove ebx, eax
mov byte [esp + 0x33], dl
call fcn.1006eac0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
jne 0x10155b20
push str.Failed_to_allocate_vt
push 2
push dword [edi + 0x1ac4]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x2e4]
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [eax + 0x24a38]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x756c8]
mov ecx, dword [ebp + 0x756cc]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x756d0]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x756d8]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x756e0]
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x756e8]
mov dword [esp + 0xb4], eax
mov eax, dword [edi + 0xfd0]
mov dword [esp + 0x98], ecx
mov ecx, dword [ebp + 0x756d4]
mov dword [esp + 0xa0], ecx
mov eax, dword [eax]
mov ecx, dword [ebp + 0x756dc]
mov dword [esp + 0xa8], ecx
mov ecx, dword [ebp + 0x756e4]
movzx edi, byte [eax + 0x9f]
mov dword [esp + 0xb0], ecx
and edi, 7
cmp dword [ebp + 0x91800], 0
mov ecx, dword [ebp + 0x756ec]
mov dword [esp + 0xb8], ecx
je 0x10155c2c
mov eax, dword [ebp + 0x91590]
dec eax
cmp dword [ebp + 0x91588], eax
jne 0x10155c2c
mov eax, dword [ebp + 0x3e7a8]
cmp dword [eax + 0x1c], 0xf
mov esi, dword [eax + 0x20]
jne 0x10155bf6
sar esi, 1
mov eax, dword [ebp + 0x3add8]
dec eax
add eax, esi
cdq
idiv esi
mov ecx, eax
mov eax, dword [esp + 0x2ec]
cdq
idiv esi
imul ecx, eax
mov eax, dword [esp + 0x2f0]
cdq
idiv esi
add ecx, eax
mov eax, dword [ebp + 0x91800]
mov esi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
jmp 0x10155c34
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
cmp byte [ebp + 0x3eb60], 3
mov dword [esp + 0x58], eax
jne 0x10155c71
cmp byte [ebp + 0x3d230], 0
lea eax, [ebp + 0x3d230]
je 0x10155c71
cmp edi, 1
je 0x10155c5a
cmp edi, 2
jne 0x10155c71
push dword [ebp + 0x3ae08]
mov byte [esp + 0x54], 1
push edi
push eax
call fcn.100c67c0
add esp, 0xc
jmp 0x10155c7c
mov eax, dword [ebp + 0x3ae08]
mov byte [esp + 0x50], 0
mov ecx, dword [esp + 0x14]
push dword [ecx + 0x14d18]
push dword [esp + 0x54]
push dword [ecx + 0x14d14]
push dword [ecx + 0x14d10]
push dword [ecx + 0x14d1c]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0xb0]
push esi
push eax
push ebp
call fcn.10158c70
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x18]
lea esi, [ecx + 0x18]
mov dword [esp + 0x58], eax
push 0x69
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x84], eax
lea eax, [ecx + 0x17b50]
push 0
push eax
mov byte [esp + 0x2b0], 0
call fcn.10513d40
mov al, byte [ebp + 0x3abf0]
add esp, 0x34
test al, al
je 0x10155d45
cmp al, 2
je 0x10155d45
mov ecx, dword [ebp + 0x3accc]
cmp ecx, 0xffffffff
je 0x10155d3b
mov ecx, dword [ebp + ecx*4 + 0x3ad7c]
lea eax, [ecx + 0x4c8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x10155d3b
mov eax, dword [ecx + 0x18]
cmp eax, dword [ebp + 0x3ac24]
jne 0x10155d27
mov eax, dword [ecx + 0x10]
cmp eax, dword [ebp + 0x3ac20]
je 0x10155d45
push 1
push ebp
mov byte [esp + 0x64], 1
call fcn.1007f190
add esp, 8
test eax, eax
jne 0x10155d45
mov al, 1
mov byte [esp + 0x1c], al
mov byte [esp + 0x13], al
mov edx, dword [esp + 0x14]
mov dword [edx + 0x243a4], 0xffffffff
cmp dword [ebp + 0x5d0a0], 0
je 0x10155d8b
cmp dword [edx + 0x14d10], 2
jle 0x10155d8b
mov eax, dword [ebp + 0x3e7a8]
lea ecx, [edx + 0xe0]
push 0
push dword [eax + 0x1c]
push esi
push ecx
push ebp
call fcn.1010f6b0
mov edx, dword [esp + 0x28]
add esp, 0x14
mov dword [edx + 0x243a4], eax
cmp byte [esp + 0x13], 0
jne 0x10155e1a
push dword [esp + 0x5c]
lea eax, [esp + 0x88]
push dword [esp + 0x48]
push dword [esp + 0x2f8]
push dword [esp + 0x2f8]
push eax
lea eax, [esp + 0x43]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x6c]
push eax
push edx
push ebp
call fcn.10159310
mov edx, dword [esp + 0x44]
add esp, 0x30
mov eax, dword [edx + 0x10b0]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0
je 0x10155e04
mov esi, dword [edx + 0xfc]
mov dword [esp + 0x28], esi
mov esi, dword [edx + 0x10c]
mov dword [esp + 0x54], esi
mov byte [esp + 0x34], 0
jmp 0x10155e2a
mov esi, dword [edx + 0x110]
mov dword [esp + 0x28], esi
mov esi, dword [edx + 0x120]
mov dword [esp + 0x54], esi
jmp 0x10155e2a
mov dword [esp + 0x28], 0
mov dword [esp + 0x54], 0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x38]
xorps xmm0, xmm0
push esi
push dword [esp + 0x4c]
movlpd qword [esp + 0x78], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x60]
push ebx
push edx
push ebp
call fcn.10157240
mov ecx, dword [esp + 0x38]
add esp, 0x24
cmp byte [esp + 0x13], 0
mov dword [ecx + 0x141ec], 0
jne 0x10155fc3
cmp dword [ebp + 0x5d180], 0
je 0x10155fc3
cmp dword [ebp + 0x5cbc8], 0x1e
jle 0x10155fc3
test edi, edi
jne 0x10155fc3
cmp byte [esp + 0x2f], 1
jne 0x10155fc3
mov eax, dword [ecx + 0x10b0]
mov eax, dword [eax]
cmp dword [eax + 0xc], edi
jne 0x10155fc3
mov eax, dword [ebp + 0x5d1a8]
mov edx, dword [ecx + 0x14d10]
test eax, eax
je 0x10155fc3
cmp eax, 2
jl 0x10155ed0
cmp edx, 1
setle al
jmp 0x10155ede
cmp eax, 1
jl 0x10155fc3
test edx, edx
sete al
test al, al
je 0x10155fc3
mov eax, dword [ebp + 0x3e7a8]
mov esi, dword [ebp + ebx*4 + 0x91854]
mov edi, dword [ebp + 0x5d180]
mov eax, dword [eax + 0x1c]
movzx ecx, byte [eax + 0x107e9d28]
movzx eax, byte [eax + 0x107e9d40]
mov dword [esp + 0x38], ecx
lea ecx, [esi + esi*2]
shr ecx, 2
mov dword [esp + 0x50], eax
cmp edx, 1
jl 0x10155f25
cmp edi, 1
jne 0x10155f25
shr ecx, 3
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x2f0]
cmp eax, dword [esi + 0xc]
mov esi, dword [ebp + ebx*4 + 0x91854]
jg 0x10155fa6
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x2ec]
cmp eax, dword [ebp + 4]
mov ebp, dword [esp + 0x74]
jg 0x10155fa6
cmp dword [esp + 0x48], esi
jae 0x10155fa6
cmp dword [esp + 0x68], ecx
jae 0x10155fa6
cmp dword [esp + 0x6c], ecx
jae 0x10155fa6
push ebx
push dword [esp + 0x2f4]
push dword [esp + 0x2f4]
push ebp
call fcn.101585f0
mov eax, dword [esp + 0x24]
push 0
mov dword [eax + 0x141ec], 1
call fcn.1006eaa0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1006eaa0
add esp, 0x18
jmp 0x10156f7b
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test edx, edx
jne 0x10155fc5
cmp edi, 2
jl 0x10155fc5
mov dword [ebx + 0x141ec], 2
jmp 0x10155fc5
mov ebx, ecx
cmp dword [ebp + 0x916ec], 0
lea eax, [ebp + 0x916ec]
je 0x10155fe1
push eax
call fcn.1013b4a0
add esp, 4
mov dword [esp + 0x78], eax
push dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x98]
push esi
push dword [esp + 0x5c]
push dword [esp + 0x34]
push dword [esp + 0x68]
push dword [esp + 0x44]
push eax
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x2a8]
push eax
push edi
push ebx
push ebp
call fcn.10157ef0
xor eax, eax
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x8c], eax
lea ebx, [esp + 0x2cd]
mov dword [esp + 0x5c], eax
add esp, 0x3c
mov dword [esp + 0x1c], eax
xor edx, edx
mov al, byte [esp + 0x27c]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x10156078
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x54]
lea eax, [esp + eax*4 + 0x281]
mov dword [esp + 0x5c], 0
mov esi, closesocket
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], esi
xor esi, esi
shl eax, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], eax
jmp 0x101560b4
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], eax
mov ebx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
nop dword [eax]
cmp dword [ecx], 1
jne 0x10156461
cmp byte [esp + 0x13], 0
jne 0x101560e8
mov eax, edx
mov dword [esp + 0x30], edx
jmp 0x101560fd
mov ecx, dword [esp + 0x1c]
add eax, esi
add eax, dword [edi + 0x50]
add ecx, 0xa0
add eax, ecx
mov dword [esp + 0x30], eax
add eax, 0x68
mov dword [esp + 0x38], 4
nop dword [eax + eax]
mov esi, dword [eax + 0x40]
lea eax, [eax + 0x290]
mov edx, dword [eax - 0x1c4]
inc esi
add edx, dword [eax - 0x254]
mov ecx, dword [eax - 0x258]
add ecx, dword [eax - 0x1c8]
mov dword [eax - 0x290], esi
mov dword [eax - 0x298], ecx
mov dword [eax - 0x294], edx
mov esi, dword [eax - 0x130]
mov edx, dword [eax - 0x134]
inc esi
mov ecx, dword [eax - 0xa8]
add ecx, dword [eax - 0x138]
add edx, dword [eax - 0xa4]
mov dword [eax - 0x280], esi
mov dword [eax - 0x288], ecx
mov dword [eax - 0x284], edx
mov esi, dword [eax - 0x250]
mov ebp, dword [eax - 0x134]
inc esi
mov ebx, dword [eax - 0x258]
add ebp, dword [eax - 0x254]
add ebx, dword [eax - 0x138]
mov dword [eax - 0x270], esi
mov dword [eax - 0x278], ebx
mov dword [eax - 0x274], ebp
mov edi, dword [eax - 0x1c4]
add edi, dword [eax - 0xa4]
mov ecx, dword [eax - 0x1c8]
add ecx, dword [eax - 0xa8]
mov dword [esp + 0x68], esi
mov esi, dword [eax - 0x1c0]
lea edx, [edi + ebp]
inc esi
mov dword [eax - 0x268], ecx
mov dword [eax - 0x260], esi
add ecx, ebx
mov esi, dword [esp + 0x68]
mov dword [eax - 0x264], edi
inc esi
sub dword [esp + 0x38], 1
mov dword [eax - 0x2a8], ecx
mov dword [eax - 0x2a4], edx
mov dword [eax - 0x2a0], esi
jne 0x10156110
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x2e4]
inc edx
add ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x2e0]
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x578]
mov ecx, dword [ebp + 0x574]
inc edx
add ecx, dword [ebp + 0x804]
mov eax, dword [ebp + 0x800]
add eax, dword [ebp + 0x570]
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], ecx
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x574]
inc edx
add ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x570]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x38], edx
mov edx, dword [ebp + 0x2e8]
mov edi, dword [ebp + 0x2e4]
inc edx
mov esi, dword [ebp + 0x800]
add edi, dword [ebp + 0x804]
add esi, dword [ebp + 0x2e0]
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], edi
mov ecx, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x38]
add ecx, edi
add esi, dword [ebp + 0x30]
mov eax, ecx
imul ecx
inc ebx
mov dword [ebp + 4], ecx
mov ecx, ebx
mov dword [ebp], esi
mov dword [ebp + 8], ebx
call fcn.10511c50
sub esi, eax
mov ecx, ebx
shl esi, 8
shr esi, cl
mov eax, esi
mov dword [ebp + 0xc], esi
cdq
cmp edx, dword [esp + 0xb0]
jl 0x10156445
jg 0x101562df
cmp eax, dword [esp + 0xac]
jbe 0x10156445
mov ebp, dword [esp + 0x74]
cmp byte [ebp + 0x5d194], 0
je 0x10156413
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x58]
imul eax
call fcn.10511c50
mov edx, dword [ebx + 0x50]
mov edi, closesocket
mov ecx, dword [ebx + 0x58]
sub edx, eax
shl edx, 8
shr edx, cl
mov eax, edx
mov dword [ebx + 0x5c], edx
xor ebx, ebx
test eax, eax
cmovg ebx, eax
cmp eax, edi
cmovl edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x2e4]
mov esi, dword [eax + 0x2e8]
mov eax, ecx
imul ecx
mov ecx, esi
call fcn.10511c50
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x2e0]
mov ecx, esi
mov esi, dword [esp + 0x30]
sub edx, eax
shl edx, 8
shr edx, cl
mov eax, edx
cmp eax, ebx
mov dword [esi + 0x2ec], edx
mov ecx, dword [esi + 0x574]
mov esi, dword [esi + 0x578]
cmovg ebx, eax
cmp eax, edi
cmovl edi, eax
mov eax, ecx
imul ecx
mov ecx, esi
call fcn.10511c50
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x570]
mov ecx, esi
mov esi, dword [esp + 0x30]
sub edx, eax
shl edx, 8
shr edx, cl
mov eax, edx
cmp eax, ebx
mov dword [esi + 0x57c], edx
mov ecx, dword [esi + 0x804]
mov esi, dword [esi + 0x808]
cmovg ebx, eax
cmp eax, edi
cmovl edi, eax
mov eax, ecx
imul ecx
mov ecx, esi
call fcn.10511c50
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x800]
mov ecx, esi
mov esi, dword [esp + 0xac]
sub edx, eax
mov eax, dword [esp + 0x30]
shl edx, 8
shr edx, cl
mov ecx, dword [esp + 0xb0]
mov dword [eax + 0x80c], edx
mov eax, edx
cmp eax, ebx
cmovg ebx, eax
cmp eax, edi
cmovl edi, eax
sub ebx, edi
mov eax, ebx
cdq
shld ecx, esi, 2
shl esi, 2
cmp edx, ecx
jl 0x1015640c
jg 0x10156413
cmp eax, esi
ja 0x10156413
mov eax, 2
jmp 0x10156418
mov eax, 1
mov ecx, dword [esp + 0x44]
mov bl, 1
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], ebx
mov byte [ecx + edx], al
mov eax, dword [esp + 0x4c]
mov byte [eax], 1
mov eax, dword [esp + 0x20]
mov byte [esp + eax + 0x27d], 1
mov byte [esp + 0x27c], bl
jmp 0x10156449
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x18]
add eax, 0xa90
inc ebx
add ecx, 4
mov dword [esp + 0x44], ebx
add edx, 0xa90
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
cmp eax, 0x2a40
jl 0x101560d0
mov ebx, dword [edi + 0x50]
add ebx, esi
mov dword [esp + 0x38], 0x4e20
add ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0xa8]
mov ecx, dword [ebx + 0xb34]
inc edx
add ecx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa0]
add eax, dword [ebx + 0xb30]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
mov edx, dword [ebx + 0x15c8]
mov ecx, dword [ebx + 0x2054]
inc edx
add ecx, dword [ebx + 0x15c4]
mov eax, dword [ebx + 0x15c0]
add eax, dword [ebx + 0x2050]
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], ecx
mov edx, dword [ebx + 0xa8]
mov ecx, dword [ebx + 0xa4]
inc edx
add ecx, dword [ebx + 0x15c4]
mov eax, dword [ebx + 0xa0]
add eax, dword [ebx + 0x15c0]
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], ecx
mov edx, dword [ebx + 0xb38]
mov edi, dword [ebx + 0xb34]
inc edx
mov esi, dword [ebx + 0xb30]
add edi, dword [ebx + 0x2054]
add esi, dword [ebx + 0x2050]
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x90], esi
mov dword [ebx + 0x94], edi
mov edx, dword [ebx + 0x88]
mov ecx, dword [ebx + 0x84]
inc edx
mov eax, dword [ebx + 0x80]
add ecx, edi
add eax, esi
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], edx
mov eax, dword [ebp + 0x3ac24]
imul eax, dword [ebp + 0x3ac20]
cmp dword [ebp + 0x91594], 2
mov dword [esp + 0x68], eax
jle 0x10156599
cmp dword [ebp + 0x9158c], 0
jne 0x10156599
mov dword [esp + 0x38], 0x9c40
mov ebx, dword [esp + 0x4c]
cmp byte [ebx], 0
jne 0x10156734
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 0x50]
add edi, dword [esp + 0x48]
add edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x58]
imul eax
call fcn.10511c50
mov edx, dword [edi + 0x50]
mov ecx, dword [edi + 0x58]
sub edx, eax
mov eax, dword [esp + 0x18]
shl edx, 8
shr edx, cl
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x5c], edx
mov eax, dword [eax + 0x50]
add eax, dword [esp + 0x48]
mov esi, dword [eax + ecx + 0x5c]
mov eax, dword [esp + 0x5c]
cmp esi, eax
cmovg eax, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
cmp esi, eax
cmovl eax, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + eax + 0xfc]
mov ecx, dword [esp + eax + 0xbc]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, esi
cdq
cmp edx, dword [esp + 0xa8]
jg 0x10156712
mov ecx, dword [esp + 0xa4]
jl 0x1015663a
cmp eax, ecx
ja 0x10156712
cmp byte [esp + 0x13], 0
jne 0x10156734
mov edi, ecx
mov ecx, dword [esp + 0xa8]
shrd edi, ecx, 1
sar ecx, 1
cmp edx, ecx
jl 0x10156673
jg 0x1015665e
cmp eax, edi
jbe 0x10156673
mov eax, dword [esp + 0x34]
mov eax, dword [esp + eax + 0x13c]
sar eax, 1
cmp esi, eax
jg 0x10156712
cmp dword [esp + 0x68], 0x38400
jg 0x10156734
mov eax, dword [esp + 0x28]
cdq
cmp edx, ecx
jl 0x101566ad
jg 0x10156690
cmp eax, edi
jbe 0x101566ad
mov edi, dword [esp + 0xa8]
mov eax, ebx
cdq
cmp edx, edi
jg 0x10156712
mov ecx, dword [esp + 0xa4]
jl 0x101566bb
cmp eax, ecx
ja 0x10156712
jmp 0x101566bb
mov edi, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
cmp dword [ebp + 0x5d0e0], 0
je 0x10156734
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x14d10], 2
jle 0x10156734
cmp dword [ebp + 0x5cbf4], 0
ja 0x10156734
jb 0x101566e8
mov eax, dword [esp + 0x38]
cmp dword [ebp + 0x5cbf0], eax
jae 0x10156734
mov esi, ecx
mov eax, ebx
mov ecx, edi
cdq
shrd esi, ecx, 4
sar ecx, 4
cmp edx, ecx
jl 0x10156734
jg 0x10156700
cmp eax, esi
jbe 0x10156734
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + ecx + 0xbc]
shl eax, 2
cmp ebx, eax
jle 0x10156734
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov byte [ebx], 1
mov bl, 1
mov byte [esp + eax + 0x27d], 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x27c], bl
jmp 0x1015673c
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
add dword [esp + 0x54], 4
add esi, 0x2a90
add dword [esp + 0x34], 4
inc dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], esi
cmp esi, 0xaa40
jl 0x101560b0
cmp byte [esp + eax + 0x27d], 0
jne 0x10156944
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x50]
add ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x54]
inc edx
add ecx, dword [ebx + 0x2ae4]
mov eax, dword [ebx + 0x50]
add eax, dword [ebx + 0x2ae0]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov edx, dword [ebx + 0x5578]
mov ecx, dword [ebx + 0x5574]
inc edx
add ecx, dword [ebx + 0x8004]
mov eax, dword [ebx + 0x8000]
add eax, dword [ebx + 0x5570]
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
mov edx, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x54]
inc edx
add ecx, dword [ebx + 0x5574]
mov eax, dword [ebx + 0x50]
add eax, dword [ebx + 0x5570]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
mov edx, dword [ebx + 0x2ae8]
mov edi, dword [ebx + 0x8004]
inc edx
add edi, dword [ebx + 0x2ae4]
mov esi, dword [ebx + 0x8000]
add esi, dword [ebx + 0x2ae0]
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x40], esi
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x34]
inc edx
mov eax, dword [ebx + 0x30]
add ecx, edi
add eax, esi
mov dword [ebx + 8], edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx + 0x50]
add edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
imul eax
call fcn.10511c50
mov edx, dword [edi]
mov ecx, dword [edi + 8]
sub edx, eax
shl edx, 8
shr edx, cl
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0xc], edx
mov eax, dword [ebx + 0x50]
mov edi, dword [esp + 0x9c]
mov esi, edi
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [esp + 0x60]
cmp eax, ecx
mov dword [esp + 0x28], eax
cmovg ecx, eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x64]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xa0]
shrd esi, ecx, 1
mov dword [esp + 0x68], eax
sar ecx, 1
mov eax, dword [esp + 0x5c]
cdq
cmp edx, ecx
jl 0x101568b4
jg 0x101568aa
cmp eax, esi
jbe 0x101568b4
mov dword [esp + 0x38], 1
jmp 0x101568bc
mov dword [esp + 0x38], 0
cmp dword [esp + 0x78], 2
jge 0x101568dc
mov eax, dword [ebp]
cmp dword [eax + 0xc4a8], 0
jne 0x101568dc
cmp dword [ebp + 0x5d0e0], 0
jne 0x101568dc
xor ebx, ebx
jmp 0x101568e1
mov ebx, 1
cmp byte [esp + 0x13], 0
jne 0x10156930
mov esi, dword [esp + 0xa0]
shrd edi, esi, 3
sar esi, 3
mov eax, edi
mov ecx, esi
shld ecx, eax, 1
add eax, eax
add edi, eax
mov eax, dword [esp + 0x68]
cdq
adc esi, ecx
cmp edx, esi
jl 0x10156930
jg 0x10156913
cmp eax, edi
jbe 0x10156930
cmp dword [esp + 0x38], 0
je 0x10156930
test ebx, ebx
je 0x10156930
mov eax, dword [esp + 0x20]
mov byte [esp + eax + 0x27d], 1
mov al, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x80], 0xc
mov ecx, 1
mov edx, dword [esp + 0x40]
movzx ebx, bl
cmove ebx, ecx
add dword [esp + 0x1c], 0xaa90
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x27c], bl
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x7c]
jl 0x10156070
mov edi, dword [esp + 0x98]
test bl, bl
jne 0x10156a4d
mov esi, dword [esp + 0x18]
push 0xf
push esi
call fcn.10157e20
mov eax, dword [esi + 4]
add esp, 8
mov ecx, dword [esi + 8]
imul eax
call fcn.10511c50
mov ecx, esi
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
sub edx, eax
shl edx, 8
mov eax, esi
shr edx, cl
cmp byte [esp + 0x13], 0
mov dword [eax + 0xc], edx
jne 0x10156a4d
mov eax, dword [esp + 0x50]
movzx ecx, bl
mov ebx, dword [esp + 0x94]
lea eax, [eax + eax*8]
sar eax, 5
cmp edx, eax
mov eax, 1
cmovg ecx, eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x64]
shrd ebx, edi, 3
mov byte [esp + 0x27c], cl
sar edi, 3
mov ecx, ebx
mov esi, edi
cdq
shld esi, ecx, 1
add ecx, ecx
add ebx, ecx
adc edi, esi
cmp edx, edi
jl 0x10156a46
jg 0x10156a17
cmp eax, ebx
jbe 0x10156a46
mov edi, dword [esp + 0x98]
mov ecx, edi
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x60]
shrd esi, ecx, 1
cdq
sar ecx, 1
cmp edx, ecx
jl 0x10156a4d
jg 0x10156a3c
cmp eax, esi
jbe 0x10156a4d
mov byte [esp + 0x27c], 1
jmp 0x10156a4d
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x2f0]
mov ecx, dword [esp + 0x70]
lea eax, [esi + 0x20]
cmp eax, dword [ecx + 0xc]
jg 0x10156aa7
mov ebx, dword [esp + 0x2ec]
lea eax, [ebx + 0x20]
cmp eax, dword [ecx + 4]
jg 0x10156aa7
push dword [esp + 0x27c]
mov eax, dword [esp + 0x18]
push 6
push edi
push dword [esp + 0xa0]
mov edi, dword [esp + 0x28]
add eax, 0xe0
push esi
push ebx
push 0xf
push edi
push ecx
push eax
push ebp
call fcn.10158f40
add esp, 0x2c
test eax, eax
jne 0x10156f18
jmp 0x10156aab
mov edi, dword [esp + 0x18]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], ecx
mov eax, edx
mov ebx, edx
and eax, 0xfffffffe
and ebx, 1
shl ebx, 4
mov dword [esp + 0x64], ebx
lea esi, [eax*8]
movzx eax, byte [esp + edx + 0x27d]
push eax
mov eax, dword [esp + 0x2f4]
push 6
push dword [esp + 0xa8]
add eax, ebx
mov dword [esp + 0x5c], esi
push dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0x300]
add eax, esi
push eax
mov eax, dword [edi + 0x50]
push 0xc
add eax, ecx
push eax
push dword [esp + 0x90]
mov eax, dword [esp + 0x38]
add eax, 0xe0
push eax
push ebp
call fcn.10158f40
add esp, 0x2c
test eax, eax
jne 0x10156ee9
mov eax, dword [esp + 0x3c]
xor edx, edx
xor edi, edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], edi
lea ecx, [eax*4]
lea eax, [esp + 0x291]
lea eax, [eax + ecx*4]
mov dword [esp + 0x28], eax
imul eax, ecx, 0x2a40
mov dword [esp + 0x5c], eax
mov eax, ecx
add eax, eax
lea eax, [esp + eax*8 + 0x17c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x281]
add eax, ecx
mov dword [esp + 0x68], eax
mov ebp, dword [esp + 0x68]
mov ecx, edx
mov eax, dword [esp + 0x58]
and ecx, 1
shl ecx, 3
and edx, 0xfffffffe
mov dword [esp + 0x78], ecx
movzx eax, byte [eax + ebp]
push eax
push 6
push dword [esp + 0xb0]
mov ebp, dword [esp + 0x80]
lea eax, [ecx + ebx]
add eax, dword [esp + 0x2fc]
lea edx, [edx*4]
push dword [esp + 0xb0]
mov ecx, dword [esp + 0x70]
push eax
lea eax, [edx + esi]
mov dword [esp + 0x60], edx
add eax, dword [esp + 0x300]
add ecx, edi
push eax
mov eax, dword [esp + 0x30]
push 9
mov eax, dword [eax + 0x50]
add eax, 0x50
add eax, ecx
push eax
push dword [esp + 0x90]
mov eax, dword [esp + 0x38]
add eax, 0xe0
push eax
push ebp
call fcn.10158f40
add esp, 0x2c
test eax, eax
jne 0x10156eb4
mov edi, dword [esp + 0x5c]
xor edx, edx
mov ecx, dword [esp + 0x54]
xor esi, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], ecx
nop dword [eax]
mov eax, edx
mov ebx, edx
and eax, 1
and ebx, 0xfffffffe
shl eax, 2
add ebx, ebx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x38], eax
jne 0x10156c43
cmp dword [ecx], 1
jne 0x10156c43
mov ecx, edi
jmp 0x10156c5b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
add ecx, dword [esp + 0x40]
add ecx, esi
mov eax, dword [eax + 0x50]
add eax, 0xa0
add ecx, eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x38]
add eax, dword [esp + 0x64]
mov esi, dword [esp + 0x2f0]
mov edi, dword [esp + 0x2ec]
add esi, eax
mov eax, dword [esp + 0x4c]
add eax, ebx
mov dword [esp + 0x34], esi
add eax, dword [esp + 0x50]
add edi, eax
mov eax, dword [esp + 0x28]
movzx eax, byte [edx + eax]
push eax
mov eax, dword [esp + 0x18]
push 3
push dword [esp + 0xb8]
add eax, 0xe0
push dword [esp + 0xb8]
push esi
push edi
push 6
push ecx
push dword [esp + 0x90]
push eax
push ebp
call fcn.10158f40
add esp, 0x2c
test eax, eax
jne 0x10156e6c
cmp dword [ebp + 0x3add8], esi
jle 0x10156d25
cmp dword [ebp + 0x3add4], edi
jle 0x10156d25
mov eax, dword [ebp + 0x3ade8]
movzx esi, byte [eax + 0x107e9d28]
mov eax, edi
cdq
idiv esi
mov ecx, eax
mov eax, dword [esp + 0x34]
cdq
idiv esi
imul ecx, dword [ebp + 0x3ade4]
mov esi, dword [esp + 0x34]
add ecx, eax
mov eax, dword [ebp + 0x3adec]
imul edx, ecx, 0xa4
mov ecx, dword [ebp + 0x3adf4]
imul ecx, edi
add edx, dword [ebp + 0x3addc]
add ecx, esi
mov dword [eax + ecx*4], edx
mov dword [edx], 3
lea eax, [esi + 2]
cmp dword [ebp + 0x3add8], eax
jle 0x10156d8c
cmp dword [ebp + 0x3add4], edi
jle 0x10156d8c
mov eax, dword [ebp + 0x3ade8]
movzx esi, byte [eax + 0x107e9d28]
mov eax, edi
cdq
idiv esi
mov ecx, eax
mov eax, dword [esp + 0x34]
imul ecx, dword [ebp + 0x3ade4]
lea eax, [eax + 2]
cdq
idiv esi
add ecx, eax
mov eax, dword [esp + 0x34]
imul edx, ecx, 0xa4
add eax, 2
mov ecx, dword [ebp + 0x3adf4]
imul ecx, edi
add edx, dword [ebp + 0x3addc]
add ecx, eax
mov eax, dword [ebp + 0x3adec]
mov dword [eax + ecx*4], edx
mov dword [edx], 3
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
add eax, ebx
add edi, dword [esp + 0x78]
add edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x2ec]
add edi, dword [esp + 0x2f0]
add ebx, 2
add ebx, eax
cmp dword [ebp + 0x3add8], edi
jle 0x10156e0d
cmp dword [ebp + 0x3add4], ebx
jle 0x10156e0d
mov eax, dword [ebp + 0x3ade8]
movzx esi, byte [eax + 0x107e9d28]
mov eax, ebx
cdq
idiv esi
mov ecx, eax
mov eax, edi
cdq
idiv esi
imul ecx, dword [ebp + 0x3ade4]
add ecx, eax
mov eax, dword [ebp + 0x3adec]
imul edx, ecx, 0xa4
mov ecx, dword [ebp + 0x3adf4]
imul ecx, ebx
add edx, dword [ebp + 0x3addc]
add ecx, edi
mov dword [eax + ecx*4], edx
mov dword [edx], 3
mov edi, dword [esp + 0x34]
add edi, 2
cmp dword [ebp + 0x3add8], edi
jle 0x10156e6c
cmp dword [ebp + 0x3add4], ebx
jle 0x10156e6c
mov eax, dword [ebp + 0x3ade8]
movzx esi, byte [eax + 0x107e9d28]
mov eax, ebx
cdq
idiv esi
mov ecx, eax
mov eax, edi
cdq
idiv esi
imul ecx, dword [ebp + 0x3ade4]
add ecx, eax
mov eax, dword [ebp + 0x3adec]
imul edx, ecx, 0xa4
mov ecx, dword [ebp + 0x3adf4]
imul ecx, ebx
add edx, dword [ebp + 0x3addc]
add ecx, edi
mov dword [eax + ecx*4], edx
mov dword [edx], 3
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
add esi, 0xa90
mov ecx, dword [esp + 0x44]
inc edx
mov edi, dword [esp + 0x1c]
add ecx, 4
add edi, 0xa90
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], esi
cmp esi, 0x2a40
jl 0x10156c20
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
add edi, 0x2a90
add dword [esp + 0x5c], 0x2a40
inc edx
add dword [esp + 0x54], 0x10
add dword [esp + 0x28], 4
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], edi
cmp edi, 0xaa40
jl 0x10156b75
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
inc edx
add ecx, 0xaa90
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], ecx
cmp edx, dword [esp + 0x7c]
jl 0x10156ab7
mov ebx, dword [esp + 0x2ec]
mov esi, dword [esp + 0x2f0]
cmp dword [ebp + 0x5d0bc], 0
je 0x10156f6b
cmp byte [esp + 0x2f], 1
mov edx, dword [esp + 0x14]
lea eax, [edx + 0x161b4]
jne 0x10156f6b
push ebx
lea ecx, [esp + 0x98]
add ebp, 0x3adc8
cmp dword [esp + 0x84], 0xc
push esi
push ecx
lea ecx, [edx + 0xe0]
jne 0x10156f5f
push dword [edi + 0x50]
push ecx
push eax
push ebp
call fcn.10158a80
jmp 0x10156f68
push edi
push ecx
push eax
push ebp
call fcn.10158660
add esp, 0x1c
push 0
call fcn.1006eaa0
push edi
call fcn.1006eaa0
add esp, 8
mov ecx, dword [esp + 0x2d4]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x2c8
ret