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

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0xbc
mov eax, dword [eax]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x4181f1
mov dword [esp + 0x34], 0xffffffc4
mov eax, dword [esp + 0x34]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 1
jne 0x418205
mov ebx, dword [esp + 0xd8]
test ebx, ebx
jne 0x418dd6
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0xd4]
test ecx, ecx
je 0x4181e2
mov edx, dword [ebp + 0x870]
mov eax, dword [ebp + 0x818]
test edx, edx
jne 0x4185b0
cmp dword [esp + 0xd0], eax
jne 0x4185b0
mov ecx, dword [ebp + 0x820]
mov edx, dword [ebp + 0x828]
mov esi, 1
mov eax, dword [ebp + 0x824]
mov ebx, dword [esp + 0xd0]
add ebx, dword [esp + 0xd4]
add edx, ecx
cmp ebx, edx
mov dword [ebp + 0x818], ebx
jbe 0x418285
lea edx, [ecx + eax]
cmp dword [esp + 0xd0], edx
jae 0x418285
mov edx, ebx
sub edx, ecx
cmp edx, eax
cmovg edx, eax
mov dword [ebp + 0x828], edx
test esi, esi
jne 0x418299
mov dword [ebp + 0x870], 0
mov dword [ebp + 0x834], eax
cmp dword [ebp + 0xf8], 1
je 0x418e3a
mov edi, dword [esp + 0xd8]
lea eax, [ebp + 0x818]
mov dword [esp + 0x50], eax
test edi, edi
je 0x418760
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0xa8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc8]
test eax, eax
jne 0x418960
mov eax, 1
shl eax, cl
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x30], eax
lea eax, [ebp + 0xa4]
mov dword [esp + 0x54], eax
lea eax, [ebp + 0x1dc]
mov dword [esp + 0x58], eax
lea esi, [esi]
xor eax, eax
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x24], esi
setae al
and eax, dword [esp + 0xdc]
cmp dword [esp + 0x2c], 5
mov dword [esp + 0x48], eax
jbe 0x41842d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
cmp eax, esi
cmova eax, esi
mov ebx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov edi, eax
mov dword [esp], eax
mov eax, dword [esp + 0x50]
add edi, ebx
mov dword [esp + 4], edi
mov dword [esp + 0x40], edi
call fcn.0040ecb0
mov eax, dword [ebp + 0x81c]
mov esi, dword [esp + 0x44]
mov edx, dword [ebp + 0x830]
sub edi, eax
add edx, esi
cmp edi, edx
jbe 0x4183a4
mov dword [ebp + 0x830], 0
mov dword [ebp + 0x8bc], 0
mov edx, esi
mov ebx, dword [esp + 0x28]
sub ebx, eax
cmp ebx, edx
mov eax, ebx
ja 0x418444
mov eax, dword [ebp + 0x828]
cmp dword [ebp + 0x834], eax
jae 0x4183c8
mov dword [ebp + 0x834], eax
mov esi, dword [ebp + 0xd8]
test esi, esi
jne 0x418483
cmp dword [ebp + 0x124], 1
je 0x418530
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov dword [esp + 8], 1
lea ebx, [eax + 3]
mov eax, dword [esp + 0x28]
lea ecx, [edi - 3]
mov dword [esp + 4], esi
mov edx, ebx
mov dword [esp], eax
mov eax, ebp
call fcn.00416e20
cmp eax, 0xffffff88
ja 0x41849b
test eax, eax
jne 0x4184b0
add esi, 3
cmp esi, edi
jbe 0x418720
mov dword [esp + 0x34], 0xffffffba
mov eax, dword [esp + 0x34]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, dword [esp + 0x44]
mov edx, eax
mov eax, dword [ebp + 0x828]
cmp edx, eax
jbe 0x41845c
mov dword [ebp + 0x828], edx
mov eax, edx
cmp eax, dword [ebp + 0x824]
jbe 0x41846a
mov dword [ebp + 0x824], eax
mov dword [ebp + 0x830], 0
mov dword [ebp + 0x8bc], 0
jmp 0x4183ba
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, ebp
call fcn.0040e330
cmp eax, 0xffffff88
jbe 0x418600
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
cmp eax, 1
mov edi, dword [esp + 0x38]
lea ecx, [ebx + esi*8 + 2]
lea edx, [ebx + eax*8 + 4]
lea esi, [eax + 3]
cmove edx, ecx
mov word [edi], dx
shr edx, 0x10
mov byte [edi + 2], dl
add dword [esp + 0x38], esi
sub dword [esp + 0x2c], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
sub dword [esp + 0x30], esi
mov dword [ebp + 0x29c], 0
mov dword [esp + 0x28], eax
jne 0x418320
mov edx, dword [esp + 0xdc]
test edx, edx
je 0x41851a
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x41851a
mov dword [ebp], 3
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x4c]
jmp 0x4187b1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, ebp
call fcn.0040e330
cmp eax, 0xffffff88
ja 0x41849b
cmp eax, 1
jne 0x418830
mov eax, dword [ebp + 0x810]
cmp dword [eax + 0x11dc], 2
je 0x418b74
mov eax, dword [esp + 0x24]
lea esi, [eax + 3]
cmp esi, dword [esp + 0x2c]
ja 0x41842d
mov ebx, dword [esp + 0x48]
mov ecx, eax
lea eax, [ebx + eax*8]
mov ebx, dword [esp + 0x38]
mov word [ebx], ax
shr eax, 0x10
mov byte [ebx + 2], al
lea eax, [ebx + 3]
mov ebx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
jmp 0x41874c
mov ecx, dword [ebp + 0x81c]
mov ebx, dword [esp + 0xd0]
xor esi, esi
mov edx, dword [ebp + 0x824]
sub eax, ecx
mov dword [ebp + 0x820], ecx
sub ebx, eax
mov dword [ebp + 0x828], edx
mov dword [ebp + 0x824], eax
mov dword [ebp + 0x81c], ebx
mov ebx, eax
sub ebx, edx
cmp ebx, 7
ja 0x418250
mov dword [ebp + 0x828], eax
mov edx, eax
xor esi, esi
jmp 0x418250
test eax, eax
jne 0x4186d0
mov ebx, dword [ebp + 0x29c]
test ebx, ebx
jne 0x418638
mov eax, dword [ebp + 0x2a8]
sub eax, dword [ebp + 0x2a4]
cmp eax, 0x1f
ja 0x418638
mov eax, dword [ebp + 0x2b0]
sub eax, dword [ebp + 0x2ac]
cmp eax, 9
jbe 0x418ec1
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00421880
cmp eax, 0xffffffba
je 0x4186d0
mov ecx, dword [ebp + 0xc0]
lea edx, [ecx - 1]
cmp ecx, 8
mov ecx, 6
cmovae ecx, edx
cmp eax, 0xffffff88
ja 0x41849b
test eax, eax
je 0x4186d0
lea edx, [ebx + 1]
shr ebx, cl
sub edx, ebx
cmp eax, edx
jae 0x4186d0
mov ecx, dword [ebp + 0x810]
mov edx, dword [ebp + 0x814]
mov esi, eax
mov dword [ebp + 0x810], edx
mov dword [ebp + 0x814], ecx
cmp dword [edx + 0x11dc], 2
jne 0x4184d6
mov dword [edx + 0x11dc], 1
jmp 0x4184d6
mov eax, dword [esp + 0x24]
lea esi, [eax + 3]
cmp esi, dword [esp + 0x2c]
ja 0x41842d
mov ebx, dword [esp + 0x48]
mov ecx, eax
lea eax, [ebx + eax*8]
mov ebx, dword [esp + 0x38]
mov word [ebx], ax
shr eax, 0x10
mov byte [ebx + 2], al
lea eax, [ebx + 3]
mov ebx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
cmp esi, 0xffffff88
ja 0x418755
mov edx, dword [ebp + 0x810]
jmp 0x4186b3
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
lea eax, [eax + edi*8]
mov word [ecx], ax
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x28]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
cmp esi, 0xffffff88
jbe 0x4184d6
mov dword [esp + 0x34], esi
jmp 0x4181e2
mov eax, dword [esp + 0xd0]
lea ecx, [ebp + 0xa4]
lea edx, [ebp + 0x1dc]
mov dword [esp + 4], ebx
mov dword [esp], eax
lea eax, [ebp + 0x818]
call fcn.0040ecb0
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
mov eax, ebp
call fcn.00416e20
cmp eax, 0xffffff88
ja 0x41849b
xor ebx, ebx
mov ecx, dword [esp + 0xd4]
add ecx, dword [ebp + 0x210]
adc ebx, dword [ebp + 0x214]
add dword [esp + 0x34], eax
xor edx, edx
mov edi, dword [esp + 0x34]
add dword [ebp + 0x218], edi
adc dword [ebp + 0x21c], edx
mov edx, dword [ebp + 0x20c]
mov eax, dword [ebp + 0x208]
mov esi, edx
or esi, eax
mov dword [ebp + 0x210], ecx
mov dword [ebp + 0x214], ebx
je 0x4181e2
add ecx, 1
adc ebx, 0
cmp edx, ebx
ja 0x4181e2
jb 0x41881f
cmp eax, ecx
jae 0x4181e2
mov dword [esp + 0x34], 0xffffffb8
jmp 0x4181e2
mov ebx, dword [ebp + 0x2a8]
sub ebx, dword [ebp + 0x2a4]
lea esi, [ebp + 0xa28]
lea edi, [ebp + 0x9fc]
mov dword [esp + 0xa8], 0
mov dword [esp + 0x80], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0x74], edi
sar ebx, 3
cmp ebx, 4
ja 0x418991
mov edx, dword [ebp + 0x810]
lea ebx, [esp + 0x98]
mov dword [esp + 0x70], ebx
lea ebx, [esp + 0xa4]
mov ecx, dword [edx + 0x11e8]
lea eax, [edx + 0x11e8]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x98], ecx
mov ecx, dword [edx + 0x11ec]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edx + 0x11f0]
mov dword [esp + 0xa0], ecx
mov edx, dword [edx + 0x11e8]
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xac], eax
mov dword [ebp + 0x9fc], 0
mov eax, edi
mov dword [edi + 0x28], 0
lea edi, [ebp + 0xa00]
and edi, 0xfffffffc
sub eax, edi
mov ecx, eax
xor eax, eax
add ecx, 0x2c
shr ecx, 2
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x2a4]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov eax, ebp
call fcn.00416660
mov esi, eax
jmp 0x41874c
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x28], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
lea eax, [ebp + 0x220]
mov dword [esp], eax
call fcn.004076a0
mov ecx, dword [esp + 0x28]
jmp 0x4182dd
lea eax, [ebp + 0x2a4]
mov ecx, ebx
xor edx, edx
mov dword [esp], ebp
lea edi, [ebp + 0xa00]
mov esi, eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0xa4]
mov dword [esp + 4], esi
lea esi, [esp + 0x98]
and edi, 0xfffffffc
mov dword [esp + 0x7c], eax
call fcn.00417e70
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x70], esi
mov dword [eax + edx*4], ebx
mov edx, dword [ebp + 0x810]
mov eax, dword [esp + 0xa8]
mov ecx, dword [edx + 0x11e8]
mov dword [esp + 0x64], eax
mov ebx, eax
lea eax, [edx + 0x11e8]
mov dword [esp + 0x98], ecx
mov ecx, dword [edx + 0x11ec]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edx + 0x11f0]
mov dword [esp + 0xa0], ecx
mov edx, dword [edx + 0x11e8]
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xac], eax
mov dword [ebp + 0x9fc], 0
mov eax, dword [esp + 0x74]
mov dword [eax + 0x28], 0
sub eax, edi
mov ecx, eax
xor eax, eax
add ecx, 0x2c
shr ecx, 2
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x41890f
mov eax, dword [ebp + 0x2a4]
mov ecx, dword [ebp + 0x2c8]
mov ebx, dword [ebp + 0xa28]
mov dword [ebp + 0x9d0], eax
mov eax, dword [ebp + 0x2a8]
test ecx, ecx
mov dword [esp + 0x3c], ebx
mov dword [ebp + 0x9d4], eax
mov eax, dword [ebp + 0x2ac]
mov dword [ebp + 0x9d8], eax
mov eax, dword [ebp + 0x2b0]
mov dword [ebp + 0x9dc], eax
mov eax, dword [ebp + 0x2b4]
mov dword [ebp + 0x9e0], eax
mov eax, dword [ebp + 0x2b8]
mov dword [ebp + 0x9e4], eax
mov eax, dword [ebp + 0x2bc]
mov dword [ebp + 0x9e8], eax
mov eax, dword [ebp + 0x2c0]
mov dword [ebp + 0x9ec], eax
mov eax, dword [ebp + 0x2c4]
mov dword [ebp + 0x9f0], eax
mov eax, dword [ebp + 0x2c8]
mov dword [ebp + 0x9f4], eax
mov eax, dword [ebp + 0x2cc]
mov dword [ebp + 0x9f8], eax
je 0x418b0f
cmp ebx, eax
jae 0x418b0f
mov dword [ebp + 0x9f4], 0
mov eax, dword [esp + 0x3c]
mov edi, dword [ebp + 0x2a4]
lea esi, [eax*8]
lea ebx, [edi + esi]
sar esi, 3
test esi, esi
mov dword [ebp + 0x9d4], ebx
je 0x418f05
mov eax, dword [ebp + 0x9f8]
mov dword [esp + 0x5c], ebx
xor edx, edx
mov ecx, eax
xor eax, eax
mov ebx, ecx
jmp 0x418b57
add eax, 1
cmp esi, eax
je 0x418b83
movzx ecx, word [edi + eax*8 + 4]
add edx, ecx
cmp eax, ebx
jne 0x418b50
cmp dword [ebp + 0x9f4], 1
lea ecx, [edx + 0x10000]
cmove edx, ecx
jmp 0x418b50
mov dword [eax + 0x11dc], 1
jmp 0x418564
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x2a8]
sub eax, edi
sar eax, 3
cmp dword [esp + 0x3c], eax
je 0x418ba4
add edx, dword [ebp + 0x9d8]
mov dword [ebp + 0x9dc], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x8c], 0
mov ecx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
lea eax, [ebp + 0x9d0]
mov dword [esp + 0x88], eax
mov edi, dword [ebp + 0x9d0]
sub ecx, edi
sar ecx, 3
test ecx, ecx
je 0x418dcf
mov esi, dword [ebp + 0x9f8]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x68], esi
jmp 0x418c0b
add eax, 1
cmp ecx, eax
je 0x418c2d
movzx edx, word [edi + eax*8 + 4]
add ebx, edx
cmp eax, esi
jne 0x418c04
cmp dword [ebp + 0x9f4], 1
lea edx, [ebx + 0x10000]
cmove ebx, edx
add eax, 1
cmp ecx, eax
jne 0x418c0b
mov dword [esp + 0x6c], ebx
xor esi, esi
xor edx, edx
mov ebx, dword [esp + 0x68]
jmp 0x418c47
add edx, 1
cmp eax, edx
je 0x418c6c
movzx ecx, word [edi + edx*8 + 6]
add ecx, esi
cmp edx, ebx
lea esi, [ecx + 3]
jne 0x418c40
add ecx, 0x10003
cmp dword [ebp + 0x9f4], 2
cmove esi, ecx
add edx, 1
cmp eax, edx
jne 0x418c47
mov ebx, dword [esp + 0x6c]
add ebx, esi
add dword [esp + 0x84], ebx
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x64], esi
je 0x418f23
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov ecx, dword [eax + esi*4]
mov eax, dword [eax + esi*4 + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
call fcn.0040ded0
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x88]
mov dword [esp], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 0x18], 1
mov eax, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
call fcn.00416660
cmp eax, 0xffffff88
ja 0x418e33
sub edi, eax
add dword [esp + 0x5c], eax
add dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x9fc]
add esi, ebx
mov ecx, dword [ebp + 0xa00]
add dword [esp + 0x3c], 1
mov dword [esp + 0x28], esi
mov dword [ebp + 0x9d0], eax
mov eax, dword [ebp + 0xa04]
mov dword [esp + 0x60], edi
mov dword [ebp + 0x9d4], ecx
mov dword [ebp + 0x9d8], eax
mov eax, dword [ebp + 0xa08]
mov dword [ebp + 0x9dc], eax
mov eax, dword [ebp + 0xa0c]
mov dword [ebp + 0x9e0], eax
mov eax, dword [ebp + 0xa10]
mov dword [ebp + 0x9e4], eax
mov eax, dword [ebp + 0xa14]
mov dword [ebp + 0x9e8], eax
mov eax, dword [ebp + 0xa18]
mov dword [ebp + 0x9ec], eax
mov eax, dword [ebp + 0xa1c]
mov dword [ebp + 0x9f0], eax
mov eax, dword [ebp + 0xa20]
mov dword [ebp + 0x9f4], eax
mov eax, dword [ebp + 0xa24]
mov dword [ebp + 0x9f8], eax
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x64]
jbe 0x418be1
mov ebx, dword [esp + 0x70]
mov edx, dword [ebp + 0x810]
mov esi, dword [esp + 0x8c]
mov ecx, dword [ebx]
lea eax, [edx + 0x11e8]
mov dword [edx + 0x11e8], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 4], edx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
jmp 0x41874c
xor ebx, ebx
jmp 0x418c72
mov eax, dword [ebp + 0x1d4]
mov esi, edx
mov ebx, ecx
lea ecx, [ebp + 0xa4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x208]
mov edx, dword [ebp + 0x20c]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp], eax
mov eax, esi
mov dword [esp + 4], edx
mov edx, ebx
call fcn.0040e070
cmp eax, 0xffffff88
mov dword [esp + 0x34], eax
ja 0x4181e2
sub ebx, eax
mov dword [ebp], 2
mov dword [esp + 0x2c], ebx
mov ebx, esi
add ebx, eax
mov dword [esp + 0x4c], ebx
jmp 0x41820d
mov esi, eax
jmp 0x418755
mov eax, dword [ebp + 0x2d0]
cmp dword [esp + 0xd0], eax
je 0x418f0c
mov edx, dword [ebp + 0x2d4]
mov ecx, dword [esp + 0xd0]
mov esi, dword [ebp + 0x2dc]
sub eax, edx
mov dword [ebp + 0x2d8], edx
sub ecx, eax
mov dword [ebp + 0x2e0], esi
mov dword [ebp + 0x2dc], eax
mov dword [ebp + 0x2d4], ecx
mov ecx, eax
sub ecx, esi
cmp ecx, 7
ja 0x418e8d
mov dword [ebp + 0x2e0], eax
mov esi, eax
add esi, edx
mov dword [ebp + 0x2d0], ebx
cmp ebx, esi
jbe 0x4182a6
lea ecx, [edx + eax]
cmp dword [esp + 0xd0], ecx
jae 0x4182a6
mov esi, ebx
sub esi, edx
cmp esi, eax
cmovle eax, esi
mov dword [ebp + 0x2e0], eax
jmp 0x4182a6
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edx, esi
mov eax, ebx
call fcn.0040e640
test eax, eax
je 0x418638
movzx edx, byte [ebx]
mov ebx, dword [esp + 0x48]
lea eax, [ebx + esi*8 + 2]
mov ebx, dword [esp + 0x38]
mov esi, 4
mov word [ebx], ax
shr eax, 0x10
mov byte [ebx + 3], dl
mov byte [ebx + 2], al
mov edx, dword [ebp + 0x810]
jmp 0x4186b3
xor edx, edx
jmp 0x418b87
mov edx, dword [ebp + 0x2d8]
mov esi, dword [ebp + 0x2e0]
mov eax, dword [ebp + 0x2dc]
jmp 0x418e8d
add ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
sub ebx, dword [esp + 0x84]
jmp 0x418ca7