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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x44b00c]
xor eax, esp
mov dword [esp + 0xac], eax
push esi
mov esi, 0x48b2e9
push edi
mov dword [esp + 0x10], esi
movzx eax, byte [esi - 1]
dec eax
cmp eax, 0xf
ja case.0x40d77a.9
movzx eax, byte [eax + 0x40ddb0]
jmp dword [eax*4 + 0x40dd90]
mov eax, dword [esi - 0x19]
lea ecx, [esp + 0x64]
mov edi, dword [esi - 0x15]
mov dl, byte [esi]
sar eax, 6
sar edi, 6
mov dword [esp + 0x10], eax
call fcn.00414c40
cmp byte [esp + 0x74], 0
je case.0x40d77a.9
push 0x4f3900
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x70]
jmp 0x40dd5d
push dword [esi - 5]
lea eax, [esp + 0xa4]
push 0x447604
push eax
call fcn.00403880
mov edx, dword [esi - 0x15]
lea eax, [esp + 0xac]
mov ecx, dword [esi - 0x19]
add esp, 0xc
sar edx, 6
sar ecx, 6
push eax
call fcn.00415110
add esp, 4
jmp case.0x40d77a.9
mov eax, dword [str.GAME_OVER]
mov dword [esp + 0xa0], eax
mov eax, dword [0x44760c]
mov dword [esp + 0xa4], eax
mov ax, word [0x447610]
mov word [esp + 0xa8], ax
xor eax, eax
mov dword [esp + 0xc], eax
nop
mov cl, byte [esi - 9]
movzx eax, al
imul edx, eax, 0x1a
mov al, cl
add cl, cl
add al, cl
lea ecx, [esp + 0x78]
add dl, al
mov eax, dword [esi - 0x19]
movzx edx, dl
sar eax, 6
mov edi, dword [edx*4 + 0x446bb0]
imul edi, dword [esi - 9]
mov edx, dword [edx*4 + 0x446ab0]
imul edx, dword [esi - 9]
shl edi, 2
sar edi, 8
shl edx, 2
add edi, eax
mov eax, dword [esi - 0x15]
sar edx, 8
sar eax, 6
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
mov dl, byte [esp + edx + 0xa0]
call fcn.00414c40
cmp byte [esp + 0x88], 0
je 0x40d8a3
push 0x4f3900
push dword [esp + 0x14]
lea eax, [esp + 0x80]
push edi
push eax
call dword [0x44b8c4]
add esp, 0x10
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, 9
jl 0x40d820
jmp case.0x40d77a.9
mov eax, dword [esi - 0x19]
mov edi, 0x23
sub edi, dword [esi - 9]
sar eax, 6
mov dword [esp + 0xc], eax
mov eax, dword [esi - 0x15]
sar eax, 6
add eax, 8
shr edi, 1
mov dword [esp + 0x10], eax
call dword [0x44b898]
push 0
push 0
push 0
call dword [0x44b8b4]
mov al, byte [esi - 9]
add esp, 0xc
mov cl, al
add al, al
add cl, al
mov al, 0x69
sub al, cl
movzx eax, al
push 1
push eax
call dword [0x44b890]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edi]
sub ecx, edi
push eax
lea eax, [edx + 0xb2]
push eax
push ecx
lea eax, [edx - 0xa2]
push eax
call dword [0x44b8a8]
add esp, 0x18
call dword [0x44b8a4]
mov eax, dword [str.GAME_OVER]
xor ecx, ecx
mov dword [esp + 0xa0], eax
mov eax, dword [0x44760c]
mov dword [esp + 0xa4], eax
mov ax, word [0x447610]
mov word [esp + 0xa8], ax
mov dword [esp + 0x10], ecx
mov dl, byte [esp + ecx + 0xa0]
lea eax, [ecx - 4]
mov edi, 0x23
lea ecx, [esp + 0x8c]
sub edi, dword [esi - 9]
imul edi, eax
mov eax, dword [esi - 0x19]
sar eax, 6
add edi, eax
mov eax, dword [esi - 0x15]
sar eax, 6
mov dword [esp + 0xc], eax
call fcn.00414c40
cmp byte [esp + 0x9c], 0
je 0x40d9b9
push 0x4f3900
push dword [esp + 0x10]
lea eax, [esp + 0x94]
push edi
push eax
call dword [0x44b8c4]
add esp, 0x10
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 9
jl 0x40d961
jmp case.0x40d77a.9
mov dl, 0x80
xor ecx, ecx
sub dl, byte [esi - 9]
mov byte [esp + 0xb], dl
mov dword [esp + 0xc], ecx
cmp dword [esi - 0x11], ecx
jle case.0x40d77a.9
movzx edi, dl
mov dword [esp + 0x20], edi
jmp 0x40d9f0
mov eax, dword [esi - 0xd]
mov dword [esp + 0x2c], eax
imul eax, dword [edi*4 + 0x446ab0], 0x64
sar eax, 8
mov dword [esp + 0x24], eax
lea eax, [edx + ecx]
mov edx, dword [esi - 0x15]
movzx eax, al
sar edx, 6
mov eax, dword [eax*4 + 0x446ab0]
imul eax, edi
xor edi, edi
sar eax, 8
sub edx, eax
mov eax, ecx
mov dword [esp + 0x14], edx
cdq
sub eax, edx
sar eax, 1
add al, byte [esp + 0xb]
movzx eax, al
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov eax, dword [eax*4 + 0x446ab0]
imul eax, dword [esp + 0x24]
mov ecx, dword [esi - 0x19]
sar ecx, 6
sar eax, 8
add eax, edi
add ecx, eax
mov eax, dword [0x492034]
add ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
lea ecx, [eax + eax*4]
mov eax, dword [0x44d244]
mov esi, dword [eax + ecx*8 + 4]
mov edx, dword [eax + ecx*8]
mov dword [esp + 0x30], esi
mov esi, dword [eax + ecx*8 + 8]
mov ecx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
add esi, edx
cmp eax, 1
jl 0x40da99
mov eax, 1
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jl 0x40daa3
mov ecx, edx
mov edx, dword [esp + 0x30]
add eax, esi
push dword [0x44d254]
mov dword [esp + 0x40], eax
push dword [esp + 0x18]
lea eax, [edx + ecx]
mov dword [esp + 0x3c], esi
push dword [esp + 0x20]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x48], edx
call dword [0x44b8c4]
mov esi, dword [esp + 0x20]
inc edi
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp edi, 2
jl 0x40da40
mov ecx, dword [esp + 0xc]
mov dl, byte [esp + 0xb]
inc ecx
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi - 0x11]
jl 0x40d9f0
jmp case.0x40d77a.9
mov dl, byte [esi - 9]
xor ecx, ecx
mov byte [esp + 0xb], dl
mov dword [esp + 0xc], ecx
cmp dword [esi - 0x11], ecx
jle case.0x40d77a.9
movzx edi, dl
mov dword [esp + 0x24], edi
jmp 0x40db30
mov eax, dword [esi - 0xd]
mov dword [esp + 0x18], eax
mov eax, dword [edi*4 + 0x446ab0]
lea eax, [eax + eax*4]
shl eax, 5
sar eax, 8
mov dword [esp + 0x20], eax
lea eax, [edx + ecx]
mov edx, dword [esi - 0x15]
movzx eax, al
sar edx, 6
mov eax, dword [eax*4 + 0x446ab0]
imul eax, edi
xor edi, edi
sar eax, 8
sub edx, eax
mov eax, ecx
mov dword [esp + 0x30], edx
cdq
sub eax, edx
sar eax, 1
add al, byte [esp + 0xb]
movzx eax, al
mov dword [esp + 0x28], eax
mov edi, edi
mov eax, dword [eax*4 + 0x446ab0]
imul eax, dword [esp + 0x20]
mov ecx, dword [esi - 0x19]
sar ecx, 6
sar eax, 8
add eax, edi
add ecx, eax
mov eax, dword [0x492034]
add ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
lea ecx, [eax + eax*4]
mov eax, dword [0x44d244]
mov esi, dword [eax + ecx*8 + 4]
mov edx, dword [eax + ecx*8]
mov dword [esp + 0x14], esi
mov esi, dword [eax + ecx*8 + 8]
mov ecx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
add esi, edx
cmp eax, 1
jl 0x40dbd9
mov eax, 1
mov edx, dword [esp + 0x18]
cmp ecx, edx
jl 0x40dbe3
mov ecx, edx
mov edx, dword [esp + 0x14]
add eax, esi
push dword [0x44d254]
mov dword [esp + 0x50], eax
push dword [esp + 0x34]
lea eax, [edx + ecx]
mov dword [esp + 0x4c], esi
push dword [esp + 0x34]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x58], edx
call dword [0x44b8c4]
mov esi, dword [esp + 0x20]
inc edi
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp edi, 2
jl 0x40db80
mov ecx, dword [esp + 0xc]
mov dl, byte [esp + 0xb]
inc ecx
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi - 0x11]
jl 0x40db30
jmp case.0x40d77a.9
call dword [0x44b898]
push 0
push 0
push 0
call dword [0x44b8b4]
mov al, byte [esi - 9]
add esp, 0xc
sub al, 0x20
movzx eax, al
push 1
mov eax, dword [eax*4 + 0x446ab0]
lea eax, [eax + eax*4]
shl eax, 4
sar eax, 8
add al, 0x50
movzx eax, al
push eax
call dword [0x44b890]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
lea eax, [ecx + 8]
shl al, 4
movzx eax, al
mov edx, dword [eax*4 + 0x446ab0]
mov eax, dword [esi - 0x15]
sar eax, 6
add ecx, eax
shl edx, 4
sar edx, 8
lea eax, [ecx + 1]
push eax
mov eax, 0x1ef
sub eax, edx
add edx, 0xfffffff0
push eax
mov eax, dword [esi - 0x19]
sar eax, 6
push ecx
add eax, edx
push eax
call dword [0x44b8a8]
mov ecx, dword [esp + 0x20]
add esp, 0x10
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x10
jl 0x40dc90
call dword [0x44b8a4]
mov eax, dword [esi - 0x19]
sar eax, 6
mov edi, dword [esi - 0xd]
mov dword [esp + 0x14], eax
mov eax, dword [esi - 0x15]
sar eax, 6
mov dword [esp + 0x18], eax
mov eax, dword [0x492034]
lea ecx, [eax + eax*4]
mov eax, dword [0x44d244]
mov edx, dword [eax + ecx*8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + ecx*8 + 8]
mov ecx, dword [eax + ecx*8 + 0xc]
mov eax, dword [esi - 0x11]
cmp edx, eax
jl 0x40dd28
mov edx, eax
cmp ecx, edi
jl 0x40dd2e
mov ecx, edi
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push dword [0x44d254]
mov dword [esp + 0x58], eax
add eax, edx
push dword [esp + 0x1c]
mov dword [esp + 0x64], eax
lea eax, [edi + ecx]
push dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x64], edi
push eax
call dword [0x44b8c4]
add esp, 0x10
add esi, 0x1c
mov dword [esp + 0x10], esi
cmp esi, 0x492049
jl 0x40d765
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
xor ecx, esp
call fcn.0042e689
mov esp, ebp
pop ebp
ret