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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push edi
mov edi, dword [esp + 0xa4]
mov eax, edi
mov ebp, ecx
lea edx, [eax + 1]
xor ebx, ebx
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419d70
sub eax, edx
mov byte [eax + edi - 3], 0x66
mov byte [eax + edi - 2], 0x78
mov byte [eax + edi - 1], 0x6d
mov byte [eax + edi], 0x6c
mov byte [eax + edi + 1], bl
mov al, byte [ebp + 0x31]
xor cl, cl
cmp al, bl
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], 0x3e4ccccd
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov byte [esp + 0x17], cl
jbe 0x41a161
push esi
lea ebx, [ebx]
mov dl, byte [ebp + 0x30]
movzx eax, cl
mov dword [esp + 0x14], eax
xor al, al
cmp dl, bl
fild dword [esp + 0x14]
mov byte [esp + 0x1a], al
fmul dword [0x4a201c]
fstp dword [esp + 0x2c]
jbe 0x41a14f
jmp 0x419e10
mov ecx, dword [ebp + 0x34]
and ecx, 0x80000001
jns 0x419e20
dec ecx
or ecx, 0xfffffffe
inc ecx
lea ecx, [esp + 0x30]
je 0x419e2a
lea ecx, [esp + 0x28]
movzx edx, al
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], bl
fild dword [esp + 0x14]
fmul dword [0x4a201c]
fstp dword [ecx]
mov cl, byte [ebp + 0x2f]
cmp cl, bl
jbe 0x41a13a
lea esp, [esp]
mov eax, dword [ebp + 0x34]
mov edx, eax
and edx, 0x80000001
jns 0x419e62
dec edx
or edx, 0xfffffffe
inc edx
lea esi, [esp + 0x28]
je 0x419e6c
lea esi, [esp + 0x30]
cmp eax, ebx
movzx edx, byte [esp + 0x13]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [0x4a201c]
fstp dword [esi]
jne 0x419ea3
movzx eax, byte [ebp + 0x30]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [0x4a201c]
fsubr dword [0x4a2020]
fstp dword [esp + 0x24]
jmp 0x419f1a
cmp eax, 1
jne 0x419ee3
movzx edx, byte [ebp + 0x30]
movzx ecx, cl
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul dword [0x4a201c]
fsubr dword [0x4a2020]
fild dword [esp + 0x14]
fmul dword [0x4a201c]
fsubr dword [0x4a2020]
fxch st(1)
fstp dword [esp + 0x1c]
fstp dword [esp + 0x24]
jmp 0x419f22
cmp eax, 2
jne 0x419f0d
movzx eax, cl
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0x40000000
fild dword [esp + 0x14]
fmul dword [0x4a201c]
fsubr dword [0x4a2020]
fstp dword [esp + 0x1c]
jmp 0x419f22
cmp eax, 3
jne 0x419f2a
mov dword [esp + 0x24], 0x40000000
mov dword [esp + 0x1c], 0x40000000
mov dword [esp + 0x20], 0x40000000
fld dword [esp + 0x28]
push 0x80
fadd dword [ebp + 0x44]
fld dword [esp + 0x30]
fadd dword [ebp + 0x48]
fstp dword [esp + 0x54]
fld dword [esp + 0x34]
fadd dword [ebp + 0x4c]
fstp dword [esp + 0x58]
fadd dword [esp + 0x20]
fld dword [esp + 0x54]
fadd dword [esp + 0x24]
fld dword [esp + 0x58]
fadd dword [esp + 0x28]
fstp dword [esp + 0xa4]
mov ecx, dword [esp + 0xa4]
fxch st(1)
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x40]
fstp dword [esp + 0x44]
call fcn.00459630
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x419fcc
mov ecx, esi
call fcn.00402190
mov dword [esi], 0x4a0968
mov dword [esi + 0x34], 0x4a0954
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], 1
mov byte [esi + 0x78], bl
mov byte [esi + 0x79], 0xa0
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
jmp 0x419fce
xor esi, esi
mov eax, dword [0x4b3118]
mov ecx, dword [eax + 0x44]
lea edx, [esp + 0x34]
push edx
push esi
call fcn.00402460
cmp eax, ebx
jne 0x41a069
mov ecx, 6
mov esi, str.BrickExplodeDefault.fxml
rep movsd dword es:[edi], dword [esi]
push 0x80
movsb byte es:[edi], byte [esi]
call fcn.00459630
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41a04b
mov ecx, esi
call fcn.00402190
mov dword [esi], 0x4a0968
mov dword [esi + 0x34], 0x4a0954
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], 1
mov byte [esi + 0x78], bl
mov byte [esi + 0x79], 0xa0
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
jmp 0x41a04d
xor esi, esi
mov edx, dword [0x4b3118]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [edx + 0x44]
push esi
call fcn.00402460
cmp eax, ebx
je 0x41a11a
mov ecx, dword [ebp + 0x554]
mov edx, dword [ebp + 0x558]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x55c]
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0x560]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x564]
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 0x568]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x56c]
mov dword [esp + 0x70], edx
mov edx, dword [ebp + 0x570]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0x574]
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x80], ecx
push edx
lea ecx, [eax + 0x34]
mov dword [esp + 0x68], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0x3f800000
call fcn.004324d0
mov al, byte [esp + 0x13]
mov cl, byte [ebp + 0x2f]
mov edi, dword [esp + 0xa8]
inc al
cmp al, cl
mov byte [esp + 0x13], al
jb 0x419e50
mov al, byte [esp + 0x1a]
mov cl, byte [ebp + 0x30]
inc al
cmp al, cl
mov byte [esp + 0x1a], al
jb 0x419e10
mov cl, byte [esp + 0x1b]
mov al, byte [ebp + 0x31]
inc cl
cmp cl, al
mov byte [esp + 0x1b], cl
jb 0x419de0
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x94
ret 4