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

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x158]
push ebp
push esi
test ebx, ebx
push edi
je 0x4219dd
mov ebp, dword [esp + 0x168]
call fcn.00433570
test eax, eax
mov dword [esp + 0x14], eax
je 0x4219ed
call fcn.0043da80
mov ecx, dword [esp + 0x180]
mov dword [esp + 0x6c], eax
push ecx
push eax
call fcn.0043daa0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe8]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
mov al, byte [esp + 0xec]
add esp, 0xc
cmp al, 0x61
jne 0x4210e7
cmp byte [esp + 0xe1], 0x77
jne 0x4210e7
cmp byte [esp + 0xe2], 0x5f
jne 0x4210e7
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0xe0]
push str._avatar
push edx
call esi
add esp, 8
test eax, eax
je 0x420f21
mov dword [esp + 0x170], 1
lea eax, [esp + 0xe0]
push str._optverts
push eax
call esi
add esp, 8
mov edi, 1
test eax, eax
je 0x420f43
mov dword [esp + 0x194], edi
lea ecx, [esp + 0xe0]
push 0x4c68cc
push ecx
call esi
add esp, 8
test eax, eax
je 0x420f60
mov dword [esp + 0x17c], edi
lea edx, [esp + 0xe0]
push str._facer
push edx
call esi
add esp, 8
test eax, eax
je 0x420f7f
mov eax, dword [esp + 0x174]
mov dword [eax], edi
lea ecx, [esp + 0xe0]
push str._collisionon
push ecx
call esi
add esp, 8
test eax, eax
je 0x420f9c
mov dword [esp + 0x188], edi
lea edx, [esp + 0xe0]
push str._collisionoff
push edx
call esi
add esp, 8
test eax, eax
je 0x420fbd
xor edi, edi
mov dword [esp + 0x188], edi
jmp 0x420fbf
xor edi, edi
lea eax, [esp + 0xe0]
push str._solid
push eax
call esi
add esp, 8
test eax, eax
je 0x420fdc
mov dword [esp + 0x178], edi
lea ecx, [esp + 0xe0]
push str._wireframe
push ecx
call esi
add esp, 8
test eax, eax
je 0x420ffd
mov dword [esp + 0x178], 1
lea edx, [esp + 0xe0]
push str._mipmapon
push edx
call esi
add esp, 8
test eax, eax
je 0x42101e
mov dword [esp + 0x190], 1
lea eax, [esp + 0xe0]
push str._mipmapoff
push eax
call esi
add esp, 8
test eax, eax
je 0x42103b
mov dword [esp + 0x190], edi
lea ecx, [esp + 0xe0]
push str._tamwrap
push ecx
call esi
add esp, 8
test eax, eax
je 0x42105c
mov dword [esp + 0x18c], 1
lea edx, [esp + 0xe0]
push str._tamclamp
push edx
call esi
add esp, 8
test eax, eax
je 0x42107d
mov dword [esp + 0x18c], 3
lea eax, [esp + 0xe0]
push str._tammirror
push eax
call esi
add esp, 8
test eax, eax
je 0x42109e
mov dword [esp + 0x18c], 2
lea ecx, [esp + 0xe0]
push str._opacityfixon
push ecx
call esi
add esp, 8
test eax, eax
je 0x4210c3
mov edx, dword [esp + 0x14]
push 1
push edx
call fcn.00433730
add esp, 8
lea eax, [esp + 0xe0]
push str._opacityfixoff
push eax
call esi
add esp, 8
test eax, eax
je 0x4210e7
mov ecx, dword [esp + 0x14]
push edi
push ecx
call fcn.00433730
add esp, 8
mov edx, dword [esp + 0x188]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00433710
call fcn.0043da80
mov edi, dword [esp + 0x74]
mov esi, eax
push edi
push esi
mov dword [esp + 0x84], esi
call fcn.0043daa0
mov eax, dword [ebx + 0x12c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], 0
je 0x42114b
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x421147
test byte [eax + 0x15c], 8
jne 0x42113d
mov ecx, 1
mov eax, dword [eax + 0x160]
test eax, eax
jne 0x42112b
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x42115e
mov eax, dword [esp + 0x184]
test eax, eax
jne 0x4211e7
mov eax, dword [esp + 0x170]
test eax, eax
jne 0x421194
push 0x43340000
push 0
push 0x3f800000
push 0
push esi
call fcn.0043daf0
push 0xc2b40000
push 0
push 0
push 0x3f800000
push esi
call fcn.0043daf0
add esp, 0x28
push 0x3dcccccd
push 0x3dcccccd
push 0x3dcccccd
push esi
call fcn.0043db30
add esp, 0x10
test ebp, ebp
je 0x4211e7
mov eax, dword [esp + 0x170]
test eax, eax
jne 0x4211f2
fld dword [ebx + 0xd0]
push ecx
fchs
fstp dword [esp]
fld dword [ebx + 0xcc]
push ecx
fchs
fstp dword [esp]
fld dword [ebx + 0xc8]
push ecx
fchs
fstp dword [esp]
push esi
call fcn.0043db60
jmp 0x421224
mov eax, dword [esp + 0x170]
test eax, eax
je 0x421227
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421227
fld dword [ebx + 0xd0]
push ecx
fchs
fstp dword [esp]
fld dword [ebx + 0xcc]
push ecx
fchs
fstp dword [esp]
fld dword [ebx + 0xc8]
push ecx
fchs
fstp dword [esp]
push edi
call fcn.0043dc10
add esp, 0x10
mov ebp, dword [ebx + 0x12c]
mov dword [esp + 0x10], 1
test ebp, ebp
mov dword [esp + 0x78], 0
je 0x421931
test byte [ebp + 0x15c], 8
jne 0x421923
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
mov eax, dword [esp + 0x194]
mov edx, dword [esp + 0x190]
mov ecx, dword [esp + 0x198]
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x80]
add esp, 4
xor ebx, ebx
cmp al, 0x61
mov dword [esp + 0x68], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x70], ecx
jne 0x421455
cmp byte [esp + 0x7d], 0x77
jne 0x421455
cmp byte [esp + 0x7e], 0x5f
jne 0x421455
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x7c]
push str._solid
push edx
call esi
add esp, 8
test eax, eax
je 0x4212f5
xor edi, edi
lea eax, [esp + 0x7c]
push str._optverts
push eax
call esi
add esp, 8
test eax, eax
je 0x421310
mov dword [esp + 0x70], 1
lea ecx, [esp + 0x7c]
push str._wireframe
push ecx
call esi
add esp, 8
test eax, eax
je 0x421328
mov edi, 1
lea edx, [esp + 0x7c]
push str._tamwrap
push edx
call esi
add esp, 8
test eax, eax
je 0x421343
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x7c]
push str._tamclamp
push eax
call esi
add esp, 8
test eax, eax
je 0x42135e
mov dword [esp + 0x1c], 3
lea ecx, [esp + 0x7c]
push str._tammirror
push ecx
call esi
add esp, 8
test eax, eax
je 0x421379
mov dword [esp + 0x1c], 2
lea edx, [esp + 0x7c]
push str._mipmapon
push edx
call esi
add esp, 8
test eax, eax
je 0x421394
mov dword [esp + 0x24], 1
lea eax, [esp + 0x7c]
push str._mipmapoff
push eax
call esi
add esp, 8
test eax, eax
je 0x4213af
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x7c]
push str._facer
push ecx
call esi
add esp, 8
test eax, eax
je 0x4213cf
mov edx, dword [esp + 0x174]
mov dword [edx], 1
lea eax, [esp + 0x7c]
push str._picture
push eax
call esi
add esp, 8
test eax, eax
je 0x4213ea
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x7c]
push str._sign
push ecx
call esi
add esp, 8
test eax, eax
je 0x421406
mov ebx, 1
mov dword [esp + 0x68], ebx
lea edx, [esp + 0x7c]
push str._opacityfixon
push edx
call esi
add esp, 8
test eax, eax
je 0x421428
mov eax, dword [esp + 0x14]
push 1
push eax
call fcn.00433730
add esp, 8
lea ecx, [esp + 0x7c]
push str._opacityfixoff
push ecx
call esi
add esp, 8
test eax, eax
je 0x42144a
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.00433730
add esp, 8
test ebx, ebx
je 0x421455
mov eax, str.aw_sign
jmp 0x421462
mov eax, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, str.aw_picture
push eax
call fcn.00452740
mov dword [0x4e1464], eax
mov ecx, dword [ebp + 0xf8]
mov dword [esp + 0x2c], ecx
mov edx, dword [ebp + 0x108]
mov dword [esp + 0x30], edx
mov ecx, dword [ebp + 0x118]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0
mov edx, dword [ebp + 0xfc]
add esp, 4
mov dword [esp + 0x38], edx
mov ecx, dword [ebp + 0x10c]
mov dword [esp + 0x3c], ecx
mov edx, dword [ebp + 0x11c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
mov ecx, dword [ebp + 0x100]
mov dword [esp + 0x48], ecx
mov edx, dword [ebp + 0x110]
mov dword [esp + 0x4c], edx
mov ecx, dword [ebp + 0x120]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
mov edx, dword [ebp + 0x104]
mov dword [esp + 0x58], edx
mov ecx, dword [ebp + 0x114]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x170]
mov edx, dword [ebp + 0x124]
mov dword [esp + 0x64], 0x3f800000
test ecx, ecx
mov dword [esp + 0x60], edx
je 0x42154c
mov ecx, dword [esp + 0x17c]
test ecx, ecx
je 0x421625
fld dword [esp + 0x58]
fsub dword [ebp + 0xc8]
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fsub dword [ebp + 0xcc]
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fsub dword [ebp + 0xd0]
fstp dword [esp + 0x60]
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00452be0
add esp, 4
push eax
call fcn.0043dac0
call fcn.0043da80
mov edx, dword [0x4e1464]
mov dword [0x4e1474], eax
push edx
call fcn.00452be0
push eax
mov eax, dword [0x4e1474]
push eax
call fcn.0043daa0
mov eax, dword [esp + 0x184]
add esp, 0x14
test eax, eax
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
je 0x4216bf
mov eax, dword [esp + 0x17c]
test eax, eax
je 0x421667
mov ecx, dword [ebp + 0xc8]
mov dword [esp + 0x58], ecx
mov edx, dword [ebp + 0xcc]
mov dword [esp + 0x5c], edx
mov eax, dword [ebp + 0xd0]
jmp 0x4216bb
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x58]
test ecx, ecx
je 0x421526
mov esi, dword [esp + 0x164]
fsub dword [esi + 0xc8]
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fsub dword [esi + 0xcc]
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fsub dword [esi + 0xd0]
fstp dword [esp + 0x60]
jmp 0x421553
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4216a1
fld dword [ebp + 0xc8]
fsub dword [esi + 0xc8]
fstp dword [esp + 0x58]
fld dword [ebp + 0xcc]
fsub dword [esi + 0xcc]
fstp dword [esp + 0x5c]
fld dword [ebp + 0xd0]
fsub dword [esi + 0xd0]
fstp dword [esp + 0x60]
jmp 0x4216bf
mov ecx, dword [esi + 0xc8]
mov dword [esp + 0x58], ecx
mov edx, dword [esi + 0xcc]
mov dword [esp + 0x5c], edx
mov eax, dword [esi + 0xd0]
mov dword [esp + 0x60], eax
mov edx, dword [0x4e1464]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.00452be0
add esp, 4
push eax
call fcn.0043dac0
mov esi, dword [esp + 0x178]
add esp, 8
test esi, esi
je 0x4216fa
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x4216fa
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421713
mov eax, dword [0x4e1464]
push eax
call fcn.00452be0
mov ecx, dword [esp + 0x78]
push eax
push ecx
call fcn.0043db90
add esp, 0xc
test esi, esi
je 0x42178d
cmp byte [esp + 0x7c], 0x61
jne 0x42178d
cmp byte [esp + 0x7d], 0x77
jne 0x42178d
cmp byte [esp + 0x7e], 0x5f
jne 0x42178d
mov eax, dword [esp + 0x78]
test eax, eax
je 0x42173f
mov eax, dword [esp + 0x17c]
test eax, eax
je 0x42178d
lea edx, [esp + 0x7f]
push 0x4c6810
push edx
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
je 0x42178d
push eax
call fcn.0043b6d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x42177a
push 0x4c6810
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
jne 0x421756
jmp 0x42178d
mov eax, dword [0x4e1464]
push esi
push eax
call fcn.00452af0
add esp, 8
mov dword [esp + 0x78], esi
mov ecx, dword [0x4e1464]
push edi
push ecx
call fcn.00453040
mov eax, dword [esp + 0x178]
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [0x4e147c], esi
test eax, eax
je 0x4217dd
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x4217dd
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4217dd
call fcn.00433570
test eax, eax
mov dword [0x4e147c], eax
je 0x4217dd
push eax
push esi
call fcn.00433650
add esp, 8
mov edx, dword [ebp + 0x134]
mov dword [esp + 0x10], 0
dec edx
test edx, edx
jle 0x421867
xor eax, eax
mov ecx, dword [ebp + 0x138]
lea edx, [eax + ecx]
lea ebx, [eax + ecx + 0x1a]
mov cl, byte [edx]
cmp cl, byte [ebx]
jbe 0x421848
mov ecx, 6
mov esi, edx
lea edi, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 6
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 6
lea esi, [esp + 0x144]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test eax, eax
movsw word es:[edi], word [esi]
je 0x421854
mov edx, dword [esp + 0x10]
dec edx
sub eax, 0x1a
mov dword [esp + 0x10], edx
jmp 0x421854
mov edx, dword [esp + 0x10]
inc edx
add eax, 0x1a
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x134]
mov ecx, dword [esp + 0x10]
dec edx
cmp ecx, edx
jl 0x4217f2
mov ebx, dword [esp + 0x68]
mov eax, dword [ebp + 0x134]
xor esi, esi
test eax, eax
jle 0x4218ab
xor edi, edi
mov ecx, dword [ebp + 0x138]
mov eax, edi
add eax, ecx
xor edx, edx
mov dl, byte [eax + 1]
lea ecx, [eax + 0xe]
push ecx
xor ecx, ecx
mov cl, byte [eax]
push edx
mov edx, dword [0x4e1464]
push ecx
push edx
call fcn.00453170
mov eax, dword [ebp + 0x134]
add esp, 0x10
inc esi
add edi, 0x1a
cmp esi, eax
jl 0x421875
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push ebx
push eax
push ebp
call fcn.00421a00
mov ecx, dword [0x4e1474]
push ecx
call fcn.0043da90
mov edx, dword [0x4e1464]
push edx
call fcn.00452850
mov eax, dword [0x4e1464]
mov ecx, dword [0x4e147c]
push eax
push ecx
call fcn.004335f0
mov edx, dword [esp + 0x1b0]
mov eax, dword [0x4e147c]
push edx
push eax
call fcn.00433710
mov esi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x194]
mov edi, dword [esp + 0x9c]
add esp, 0x30
mov dword [esp + 0x10], 0
mov ebp, dword [ebp + 0x160]
test ebp, ebp
jne 0x421245
push esi
call fcn.0043da90
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x170]
push ecx
push edx
call fcn.00433650
mov eax, dword [esp + 0x190]
add esp, 0xc
test eax, eax
jne 0x421963
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x421963
xor eax, eax
jmp 0x421968
mov eax, 1
mov ecx, dword [esp + 0x194]
mov edx, dword [esp + 0x190]
push ecx
mov ecx, dword [esp + 0x190]
push edx
mov edx, dword [esp + 0x190]
push ecx
mov ecx, dword [esp + 0x184]
push edx
mov edx, dword [esp + 0x184]
push eax
mov eax, dword [esp + 0x190]
push edi
push eax
mov eax, dword [esp + 0x18c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ebx + 0x138]
push eax
push ecx
push 0
push edx
call fcn.00420e50
push edi
xor ebp, ebp
call fcn.0043da90
mov ebx, dword [ebx + 0x134]
add esp, 0x38
test ebx, ebx
mov dword [esp + 0x164], ebx
jne 0x420e70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x150
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret