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

Disassembly:
sub esp, 0x2c0
push ebx
push ebp
mov ebp, dword [esp + 0x2cc]
push esi
push edi
mov edi, dword [esp + 0x2dc]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404470
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
sub eax, edx
push edi
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xac]
push 0x49c688
push eax
call esi
add esp, 0xc
push edi
lea ecx, [esp + 0x84]
push 0x49c68c
push ecx
call esi
lea edx, [esp + 0x8c]
add esp, 0xc
push edx
mov esi, ebp
call fcn.00433280
mov ebx, eax
lea eax, [esp + 0xac]
add esp, 4
push eax
call fcn.00433280
add esp, 4
add ebx, eax
mov dword [esp + 0x6c], ebx
jne 0x4044f6
push edi
push str.Need_at_least_one___s__type_bg
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c0
ret
push ebx
call fcn.00405540
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x404f6c
lea edx, [esp + 0xd0]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404518
lea edi, [esp + 0xd0]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404530
mov ecx, dword [0x49c6b0]
mov dword [edi], ecx
lea edi, [esp + 0xd0]
mov eax, ebp
call fcn.00433050
cmp eax, 0xffffffff
jne 0x40456e
mov edx, edi
push edx
push str.Cant_access_group__s
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
jmp 0x404f63
push 0x49c6cc
push ebp
call fcn.00433410
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
je 0x4045d0
mov ecx, dword [esp + 0x2d8]
lea edx, [esp + 0xd0]
call fcn.0040e530
lea eax, [esp + 0xd0]
push eax
call fcn.0041a080
add esp, 4
mov dword [ebx + 0x2c], eax
cmp eax, edi
jne 0x4045c7
push esi
push str.Error_reading_sprite__s
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
jmp 0x404f63
mov dword [ebx + 0x30], 1
jmp 0x4045e5
mov eax, dword [esp + 0x2e0]
cmp eax, edi
je 0x404f50
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edi
lea ecx, [esp + 0x20]
push ecx
mov eax, str.debugbg
mov ecx, ebp
call fcn.00433730
add esp, 4
test eax, eax
je 0x404613
cmp dword [esp + 0x20], edi
je 0x404633
mov eax, 0xff
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edi
jmp 0x404633
lea edx, [ebx + 0x48]
push edx
lea eax, [ebx + 0x44]
push eax
lea ecx, [ebx + 0x40]
push ecx
push str._i__i__i
mov eax, str.bgclearcolor
mov ecx, ebp
call fcn.00433790
add esp, 0x10
mov eax, dword [esp + 0x2e4]
cmp eax, edi
je 0x404649
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edi
jmp 0x4046ef
mov ecx, ebp
mov dword [ebp + 0x18], 0xffffffff
call fcn.00433220
mov esi, eax
lea eax, [esi + 1]
mov ecx, str.begin_action
call fcn.0040e3a0
test eax, eax
jne 0x40468e
lea ebx, [ebx]
mov ecx, ebp
call fcn.00433220
mov esi, eax
test esi, esi
je 0x4046ef
lea eax, [esi + 1]
mov ecx, str.begin_action
call fcn.0040e3a0
test eax, eax
je 0x404670
test esi, esi
je 0x4046ef
mov edi, ebp
call fcn.00401130
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x4046e8
mov eax, 0x52be60
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4046a6
mov edx, dword [str._nError_loading_anim.]
mov ecx, dword [0x49c734]
mov dword [eax], edx
mov edx, dword [0x49c738]
mov dword [eax + 4], ecx
mov ecx, dword [0x49c73c]
mov dword [eax + 8], edx
mov edx, dword [0x49c740]
mov dword [eax + 0xc], ecx
mov cl, byte [0x49c744]
mov dword [eax + 0x10], edx
mov byte [eax + 0x14], cl
jmp 0x404f63
mov dword [ebx + 0x28], 1
mov ecx, ebp
mov dword [ebp + 0x18], 0xffffffff
call fcn.00433220
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
jle 0x404e04
mov edx, dword [ebp + 0x18]
fldz
xor edi, edi
cmp edx, dword [ebp + 0x30]
je 0x4047c9
mov ebx, dword [esp + 0x78]
fstp st(0)
lea ebx, [ebx]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2dc]
lea eax, [esi + 1]
call fcn.0040e3a0
test eax, eax
je 0x404769
movsx eax, byte [esi + ebx + 1]
lea ecx, [eax - 1]
cmp ecx, 0x7e
ja 0x404762
push eax
call dword [sym.imp.MSVCR90.dll_isspace]
add esp, 4
test eax, eax
jne 0x4047c7
cmp byte [esi + ebx + 1], 0x5d
je 0x4047c7
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x30]
jl 0x40477a
mov dword [esp + 0x14], edi
jmp 0x4047bb
mov edx, dword [ebp + 0x2c]
lea ecx, [edx + eax*4]
mov eax, dword [ecx]
inc eax
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + edx*4]
sub edx, dword [ebp + 4]
mov dword [ebp + 0x10], edx
mov ecx, dword [ecx]
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp + 0x28]
mov dword [ebp + 0x1c], edi
jge 0x4047b0
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0x5b
jne 0x4047b7
mov dword [ebp + 0x1c], 1
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x30]
jne 0x404730
fldz
fst dword [esp + 0x4c]
or eax, 0xffffffff
fst dword [esp + 0x48]
push str.layerno
fld1
push ebp
fst dword [esp + 0x34]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x78], eax
xor ebx, ebx
fst dword [esp + 0x70]
mov dword [esp + 0x2c], edi
fstp dword [esp + 0x68]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], 0x100
mov dword [esp + 0x4c], edi
mov dword [esp + 0x64], edi
call fcn.00433410
add esp, 8
cmp eax, edi
je 0x404830
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x5c], eax
push str.type
push ebp
call fcn.00433410
mov esi, eax
add esp, 8
cmp esi, edi
je 0x404e3f
movsx eax, byte [esi]
lea edx, [eax - 1]
cmp edx, 0x7e
ja 0x40485d
push eax
call dword [sym.imp.MSVCR90.dll_tolower]
add esp, 4
sub eax, 0x61
cmp eax, 0xf
ja case.0x404870.98
movzx eax, byte [eax + 0x404f94]
jmp dword [eax*4 + 0x404f7c]
mov dword [esp + 0x18], 3
jmp 0x4048a3
mov dword [esp + 0x18], 0xa
jmp 0x4048a3
mov dword [esp + 0x18], edi
jmp 0x4048a3
mov dword [esp + 0x18], 1
jmp 0x4048a3
mov dword [esp + 0x18], 2
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
push str._f__f
mov eax, str.start
mov ecx, ebp
call fcn.00433790
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
push str._f__f
mov eax, str.delta
mov ecx, ebp
call fcn.00433790
fld dword [esp + 0x3c]
fld qword [0x4a6bf8]
add esp, 0xc
fmul st(1), st(0)
lea edx, [esp + 0x68]
fxch st(1)
push edx
lea eax, [esp + 0x64]
fstp dword [esp + 0x34]
push eax
fld dword [esp + 0x34]
push str._f__f
fmul st(1)
mov eax, str.velocity
mov ecx, ebp
fstp dword [esp + 0x38]
fldz
fmulp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fst dword [esp + 0x60]
fstp dword [esp + 0x34]
call fcn.00433790
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 3
je 0x40498a
cmp eax, 0xa
je 0x4049a6
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x49c7a8
mov eax, str.spriteno
mov ecx, ebp
call fcn.00433790
add esp, 0xc
cmp eax, 2
je 0x4049a6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push str.Invalid_or_missing_spriteno:__i__i_n_tin__s
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x30]
add esp, 0x14
push edx
jmp 0x404f64
lea eax, [esp + 0x70]
push eax
mov eax, str.actionno
mov ecx, ebp
call fcn.00433730
add esp, 4
test eax, eax
je 0x404e61
push str.trans
push ebp
call fcn.00433410
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4049f5
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.004111e0
mov ebx, eax
add esp, 8
cmp ebx, 0xfffffffe
je 0x404e6d
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0x49c7a8
mov eax, str.alpha
mov ecx, ebp
call fcn.00433790
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov eax, str.mask
mov ecx, ebp
call fcn.00433730
add esp, 4
test eax, eax
mov eax, dword [esp + 0x24]
je 0x404a23
mov ecx, eax
sub ecx, edi
je 0x404a21
sub ecx, 1
jne 0x404a23
lea eax, [ecx + 1]
jmp 0x404a23
xor eax, eax
mov edi, dword [esp + 0x18]
fld dword [esp + 0x2c]
cmp edi, 3
je 0x404aef
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x34]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0x58]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x70]
fstp dword [esp]
push edx
push ebx
call fcn.00405790
add esp, 0x30
cmp eax, 0xffffffff
jne 0x404b2e
mov eax, 0x52be60
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404a90
mov ecx, dword [str._nError_in]
mov edx, dword [0x49c84c]
mov dword [eax], ecx
mov cx, word [0x49c850]
mov dword [eax + 4], edx
mov dl, byte [0x49c852]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404ac3
mov edi, 0x52be60
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ad4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404f63
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push eax
sub esp, 0x10
fstp dword [esp + 0xc]
mov eax, ebx
fld dword [esp + 0x44]
fstp dword [esp + 8]
fld dword [esp + 0x60]
fstp dword [esp + 4]
fld dword [esp + 0x5c]
fstp dword [esp]
push ecx
call fcn.004058e0
add esp, 0x18
cmp eax, 0xffffffff
je 0x404e9d
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
call fcn.00406340
mov edx, dword [esp + 0x5c]
mov esi, eax
mov dword [esi + 0x80], edx
fld dword [esp + 0x60]
fstp dword [esi + 0x1c]
lea eax, [esi + 0xc8]
fld dword [esp + 0x68]
push eax
fstp dword [esi + 0x20]
mov eax, 0x49c86c
fld1
mov ecx, ebp
fst dword [esi + 0xc]
fstp dword [esi + 0x10]
fld dword [esp + 0x58]
fstp dword [esi + 0x24]
fld dword [esp + 0x2c]
fstp dword [esi + 0x28]
call fcn.00433730
add esp, 4
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x40]
push edx
push 0x49c7a8
mov eax, str.tile
mov ecx, ebp
call fcn.00433790
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x40]
lea edi, [esi + 0x38]
push edi
lea ebx, [esi + 0x34]
mov dword [esi + 0x30], ecx
push ebx
push 0x49c7a8
mov eax, str.tilespacing
mov ecx, ebp
call fcn.00433790
add esp, 0xc
cmp dword [esp + 0x18], 3
jne 0x404be8
cmp dword [ebx], 1
jge 0x404bdc
mov dword [esi + 0x2c], 0
cmp dword [edi], 1
jge 0x404be8
mov dword [esi + 0x30], 0
lea edx, [esi + 0x5c]
push edx
lea eax, [esi + 0x54]
push eax
lea ecx, [esi + 0x58]
push ecx
lea edx, [esi + 0x50]
push edx
xor edi, edi
push str._i__i__i__i
mov eax, str.window
mov ecx, ebp
mov dword [esi + 0x4c], edi
call fcn.00433790
add esp, 0x14
cmp eax, 4
jl 0x404c39
lea eax, [esi + 0x64]
push eax
lea ecx, [esi + 0x60]
push ecx
push str._f__f
mov eax, str.windowdelta
mov ecx, ebp
mov dword [esi + 0x4c], 1
call fcn.00433790
add esp, 0xc
lea edx, [esi + 0xe4]
push edx
mov eax, str.positionlink
mov ecx, ebp
call fcn.00433730
add esp, 4
lea eax, [esi + 0xf8]
push eax
lea ecx, [esi + 0xf0]
push ecx
lea edx, [esi + 0xe8]
push edx
push str._f___f___f
mov eax, str.sin.x
mov ecx, ebp
call fcn.00433790
lea eax, [esi + 0xfc]
push eax
lea ecx, [esi + 0xf4]
push ecx
add esi, 0xec
push esi
push str._f___f___f
mov eax, str.sin.y
mov ecx, ebp
call fcn.00433790
add esp, 0x20
cmp dword [esp + 0x18], 1
jne 0x404de2
fld dword [0x4a6dc4]
lea edx, [esp + 0x64]
push edx
fstp dword [esp + 0x28]
fldz
lea eax, [esp + 0x5c]
push eax
fstp dword [esp + 0x20]
push 0x49c7a8
mov eax, str.width
mov ecx, ebp
call fcn.00433790
add esp, 0xc
cmp eax, 2
jne 0x404ce1
lea edi, [eax - 1]
jmp 0x404d4a
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x78]
push edx
push str._f__f
mov eax, str.xscale
mov ecx, ebp
call fcn.00433790
add esp, 0xc
cmp eax, 2
jne 0x404ee9
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [eax + 0x2c]
call fcn.00417780
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld st(0)
fmul dword [esp + 0x74]
call fcn.00499690
fmul dword [esp + 0x7c]
mov dword [esp + 0x58], eax
call fcn.00499690
mov dword [esp + 0x64], eax
lea edx, [esp + 0x24]
push edx
mov eax, str.yscalestart
mov ecx, ebp
call fcn.004336d0
fld dword [esp + 0x28]
fmul qword [0x4a6dd0]
lea eax, [esp + 0x1c]
add esp, 4
push eax
mov eax, str.yscaledelta
fstp dword [esp + 0x28]
mov ecx, ebp
call fcn.004336d0
fld dword [esp + 0x1c]
fmul qword [0x4a6dd0]
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
add esp, 4
push edi
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x68]
sub esp, 8
fstp dword [esp + 4]
mov eax, edx
or eax, dword [esp + 0x48]
fld dword [esp + 0x30]
mov edx, dword [esp + 0x64]
fstp dword [esp]
push ecx
mov dword [esp + 0x38], eax
push edx
mov eax, edi
call fcn.00406340
mov esi, eax
mov eax, dword [esp + 0x3c]
push edi
call fcn.004063d0
add esp, 0x18
test eax, eax
je 0x404ef8
mov ecx, ebp
call fcn.00433220
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
jl 0x404714
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2dc]
push ebp
push ebx
call fcn.00404fb0
add esp, 8
test eax, eax
jne 0x404f43
mov edi, 0x52be60
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404e23
mov ecx, 7
mov esi, str._nError_reading_bg_control_data
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x404f63
mov eax, dword [esp + 0x14]
push eax
push str.Missing_type_in__s
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
jmp 0x404f64
mov eax, dword [esp + 0x14]
push eax
push str.Missing_actionno_in__s
jmp 0x404e49
mov edx, dword [esp + 0x14]
push edx
push esi
push str.Invalid_argument:_trans___s_nin__s
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x2c]
push eax
call fcn.004055a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c0
ret
mov edi, 0x52be60
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404ea3
mov eax, dword [esp + 0x14]
mov ecx, 5
mov esi, str.Error_adding_anim_for
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404ec0
mov edi, 0x52be60
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ed1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404f63
mov eax, dword [esp + 0x14]
push eax
push str.Missing_or_invalid_width_or_xscale_for_parallax_in__s.
jmp 0x404e49
mov edx, dword [esp + 0x14]
push edx
push str.Cant_init_parallax_in__s.
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
push edi
jmp 0x404f64
mov eax, dword [esp + 0x14]
push eax
push esi
push str.Invalid_type:__s_n_tin__s
push 0x52be60
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004055a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c0
ret
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c0
ret
mov ecx, 8
mov esi, str.Error:_sff_file_must_be_specified
mov edi, 0x52be60
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
call fcn.004055a0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c0
ret