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

Disassembly:
push 0xffffffffffffffff
push 0x43ee46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x44b6d0]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x2c], edi
call fcn.0042b070
mov esi, eax
push 0x118
mov dword [esp + 0xc], esi
call fcn.00430d06
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x94], 0
je 0x40390c
mov ecx, eax
call fcn.00416dd0
mov ecx, eax
jmp 0x40390e
xor ecx, ecx
test esi, esi
mov eax, dword [edi + 0x90]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x94], 0xffffffff
mov dword [ecx + 0x5c], eax
je 0x403d20
push ebx
push ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x403940
mov ecx, dword [eax + 0x20]
jmp 0x403945
mov ecx, 0x4411cc
mov eax, ecx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403960
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00401c50
mov eax, dword [esp + 0x6c]
test eax, eax
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x9c], 1
je 0x403e22
cmp eax, 6
mov ecx, eax
jb 0x40399f
mov ecx, 6
cmp ebp, 0x10
mov esi, ebx
jae 0x4039aa
lea esi, [esp + 0x5c]
mov edi, str.sprite
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4039ba
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x403d52
cmp eax, 6
jb 0x403d52
cmp eax, 6
setne dl
test edx, edx
jne 0x403d52
mov ecx, dword [esp + 0x10]
call fcn.0042b070
mov ebp, eax
test ebp, ebp
je 0x403caa
lea esp, [esp]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4039fc
mov ecx, dword [ebp + 0x20]
jmp 0x403a01
mov ecx, 0x4411cc
mov eax, ecx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea esi, [eax + 1]
jmp 0x403a20
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403a20
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00401c50
mov eax, dword [esp + 0x50]
test eax, eax
mov ebx, dword [esp + 0x54]
mov byte [esp + 0x9c], 2
je 0x403bf0
cmp eax, 7
mov ecx, eax
jb 0x403a58
mov ecx, 7
cmp ebx, 0x10
mov esi, dword [esp + 0x40]
jae 0x403a65
lea esi, [esp + 0x40]
mov edi, str.texture
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403a75
sbb edx, edx
sbb edx, 0xffffffff
xor edi, edi
cmp edx, edi
jne 0x403b49
cmp eax, 7
jb 0x403b49
xor edx, edx
cmp eax, 7
setne dl
cmp edx, edi
jne 0x403b49
push str.fname
mov ecx, ebp
call fcn.0042c860
mov ebx, 0xf
mov ecx, eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403ac1
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.00401c50
mov eax, dword [esp + 0x8c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x78]
mov byte [esp + 0x9c], 3
jae 0x403af5
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x90]
push ecx
lea ecx, [eax + 0x7c]
call fcn.0042a9a0
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc8], eax
cmp dword [esp + 0x8c], esi
mov byte [esp + 0x9c], 2
jb 0x403b31
mov eax, dword [esp + 0x78]
push eax
call fcn.0043134d
add esp, 4
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
jmp 0x403c68
test eax, eax
je 0x403bf0
cmp eax, 9
mov ecx, eax
jb 0x403b5d
mov ecx, 9
cmp ebx, 0x10
mov esi, dword [esp + 0x40]
jae 0x403b6a
lea esi, [esp + 0x40]
mov edi, str.dimension
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403b7a
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x403bf0
cmp eax, 9
jb 0x403bf0
cmp eax, 9
setne dl
test edx, edx
jne 0x403bf0
push 0x441244
mov ecx, ebp
call fcn.0042c860
push eax
call fcn.00431e91
add esp, 4
push 0x441240
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.0042c860
push eax
call fcn.00431e91
add esp, 4
push 0x44129c
mov ecx, ebp
mov dword [esp + 0x34], eax
call fcn.0042c860
push eax
call fcn.00431e91
add esp, 4
push 0x441298
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.0042c860
push eax
call fcn.00431e91
mov dword [esp + 0x2c], eax
jmp 0x403c65
cmp eax, eax
mov edx, eax
jae 0x403bf6
test edx, edx
je 0x403c68
cmp edx, 7
mov ecx, edx
jb 0x403c06
mov ecx, 7
cmp ebx, 0x10
mov esi, dword [esp + 0x40]
jae 0x403c13
lea esi, [esp + 0x40]
mov edi, str.hotspot
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403c23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403c68
cmp edx, 7
jb 0x403c68
cmp edx, 7
setne al
test eax, eax
jne 0x403c68
push 0x441244
mov ecx, ebp
call fcn.0042c860
push eax
call fcn.00431e91
add esp, 4
push 0x441240
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.0042c860
push eax
call fcn.00431e91
mov dword [esp + 0x30], eax
add esp, 4
mov ecx, ebp
call fcn.0042b0a0
mov ebp, eax
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x9c], 1
jb 0x403c8d
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0043134d
add esp, 4
test ebp, ebp
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jne 0x4039f0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0041eb40
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0042b0a0
mov esi, eax
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x10], esi
mov dword [esp + 0x9c], 0xffffffff
jb 0x403d01
mov edx, dword [esp + 0x5c]
push edx
call fcn.0043134d
add esp, 4
test esi, esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jne 0x403930
pop ebp
pop ebx
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.0041ec50
mov ecx, dword [esp + 0x8c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x84]
mov eax, esi
pop esi
call fcn.00431ec7
add esp, 0x90
ret 4
test eax, eax
je 0x403e22
cmp eax, 8
mov ecx, eax
jb 0x403d66
mov ecx, 8
cmp ebp, 0x10
mov esi, ebx
jae 0x403d71
lea esi, [esp + 0x5c]
mov edi, str.position
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403d81
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x403e22
cmp eax, 8
jb 0x403e22
cmp eax, 8
setne dl
test edx, edx
jne 0x403e22
mov ebx, dword [esp + 0x10]
push 0x441244
mov ecx, ebx
call fcn.0042c860
push eax
call fcn.00431ed5
fstp dword [esp + 0x1c]
add esp, 4
push 0x441240
mov ecx, ebx
call fcn.0042c860
push eax
call fcn.00431ed5
fstp dword [esp + 0x28]
add esp, 4
push str.rotangle
mov ecx, ebx
call fcn.0042c860
push eax
call fcn.00431ed5
fstp dword [esp + 0x14]
add esp, 4
push str.flip
mov ecx, ebx
call fcn.0042c860
push eax
call fcn.00431e91
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0041ebf0
jmp 0x403cd5
push 4
push str.meta
push eax
push 0
lea ecx, [esp + 0x68]
call fcn.004010f0
test eax, eax
jne 0x403cd1
mov ebx, dword [esp + 0x10]
push str.bonustime
mov ecx, ebx
call fcn.0042c860
push eax
call fcn.00431e91
add esp, 4
push str.bonuspoint
mov ecx, ebx
mov esi, eax
call fcn.0042c860
push eax
call fcn.00431e91
add esp, 4
push str.required
mov ecx, ebx
mov edi, eax
call fcn.0042c860
push eax
call fcn.00431e91
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push edi
push esi
push 0
push 1
call fcn.00416e00
jmp 0x403cd5