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

Disassembly:
push 0xffffffffffffffff
push 0x59383c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f4
push ebx
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x38], edi
mov dword [esp + 0xc], ebx
call fcn.004d2880
mov eax, dword [esp + 0x30c]
push eax
lea ecx, [esp + 0x1dc]
mov dword [esp + 0x308], ebx
call fcn.004d2d80
test al, al
lea ecx, [esp + 0x1d8]
jne 0x50e092
mov dword [esp + 0x304], 0xffffffff
call fcn.004d2700
xor eax, eax
jmp 0x50f740
push esi
call fcn.004d0500
lea ecx, [edi + 0x20]
test ecx, ecx
je 0x50e0a4
lea esi, [edi + 0x24]
jmp 0x50e0a6
xor esi, esi
push ebp
push 0x11
push str.basemodelfilename
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 1
call fcn.004d1aa0
mov eax, dword [esp + 0x38]
mov ebp, 0x10
cmp eax, ebp
mov byte [esp + 0x30c], bl
jb 0x50e102
mov eax, dword [esp + 0x24]
push eax
call fcn.004796fd
add esp, 4
lea eax, [edi + 0x40]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x50e112
lea esi, [edi + 0x44]
jmp 0x50e114
xor esi, esi
push 0xc
push str.treefilename
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 2
call fcn.004d1aa0
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x30c], bl
jb 0x50e168
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
lea eax, [edi + 0x60]
test eax, eax
je 0x50e174
lea esi, [edi + 0x64]
jmp 0x50e176
xor esi, esi
push 0x11
push str.attributefilename
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 3
call fcn.004d1aa0
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x30c], bl
jb 0x50e1ca
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
push 0xd
push str.smokebonename
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
lea eax, [edi + 0xa0]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 4
call fcn.004d1aa0
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x30c], bl
jb 0x50e224
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
lea eax, [edi + 0x80]
test eax, eax
je 0x50e236
lea esi, [edi + 0x84]
jmp 0x50e238
xor esi, esi
push 0x12
push str.motionlistfilename
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 5
call fcn.004d1aa0
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x30c], bl
jb 0x50e28c
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
cmp dword [edi + 0x58], ebx
je 0x50e29a
mov ecx, dword [esp + 0x18]
call fcn.0049d9b0
push 0xd
push str.smokefilename
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 6
call fcn.004d0a40
mov esi, eax
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x30c], bl
jb 0x50e2f4
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
cmp esi, ebx
je 0x50e4b1
mov esi, dword [esp + 0x44]
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x50e30b
xor eax, eax
jmp 0x50e323
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test al, 1
mov eax, dword [esi + 8]
je 0x50e372
cmp eax, ebx
je 0x50e346
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
push ebx
push str.SmokeFileName_ArgCount__d__20
call fcn.004b01a0
add esp, 8
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x30c], 0xffffffff
call fcn.004d2700
xor eax, eax
jmp 0x50f73e
cmp eax, ebx
jne 0x50e37a
xor eax, eax
jmp 0x50e392
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
shr eax, 1
cmp eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ebx
jbe 0x50e4b1
xor ebp, ebp
mov dword [esp + 0x1c], ebx
lea ebx, [ebx]
mov edi, dword [esi + 8]
cmp edi, ebx
lea ecx, [esi + 4]
je 0x50e471
mov esi, dword [ecx + 8]
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
jbe 0x50e471
mov eax, dword [esp + 0x1c]
cmp dword [edi + eax + 0x18], 0x10
jb 0x50e3ef
mov edi, dword [edi + eax + 4]
jmp 0x50e3f3
lea edi, [edi + eax + 4]
push edi
call fcn.0047a673
mov edi, eax
add esp, 4
cmp edi, ebx
jl 0x50e4a6
cmp edi, 4
jge 0x50e4a6
mov ecx, dword [esp + 0x44]
lea eax, [ebp + 1]
push eax
add ecx, 4
call fcn.00447d60
mov ecx, dword [esp + 0x40]
mov esi, eax
cmp dword [esi + 0x18], 0x10
lea edi, [ecx + edi*4 + 8]
jb 0x50e434
mov eax, dword [esi + 4]
jmp 0x50e437
lea eax, [esi + 4]
mov ecx, dword [0x5f1ccc]
push ebx
push edi
push eax
call fcn.0049c2e0
test eax, eax
je 0x50e476
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
inc eax
add edx, 0x38
add ebp, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jae 0x50e4b1
mov esi, dword [esp + 0x44]
jmp 0x50e3b0
call fcn.00445e10
cmp dword [esi + 0x18], 0x10
jb 0x50e491
mov esi, dword [esi + 4]
push esi
push str.CRaceData::RegisterEffect2__s__ERROR
call fcn.004b01a0
mov dword [edi], ebx
jmp 0x50e351
add esi, 4
push esi
push str.CRaceData::RegisterEffect2__s__ERROR
call fcn.004b01a0
mov dword [edi], ebx
jmp 0x50e351
push edi
push str.SmokeFileName_SmokeNum__d__OUT_OF_RANGE
jmp 0x50e34c
push str.shapedata
lea ecx, [esp + 0x1e4]
call fcn.004d07e0
test eax, eax
mov esi, 0x599e5c
mov edi, 0xf
je 0x50f060
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0xa8], esi
push 8
push str.pathname
lea ecx, [esp + 0x28]
mov byte [esp + 0x314], 7
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 8
mov dword [esp + 0x1c], 1
call fcn.004d1aa0
test eax, eax
je 0x50e5a2
push 0xe
push str.shapedatacount
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00404250
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 9
mov dword [esp + 0x1c], 3
call fcn.004d1640
test eax, eax
mov byte [esp + 0x13], 1
jne 0x50e5a6
mov byte [esp + 0x13], bl
test byte [esp + 0x14], 2
mov ebp, 0x10
je 0x50e5ed
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xe0]
and ecx, 0xfffffffd
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50e5d8
mov eax, dword [esp + 0xcc]
push eax
call fcn.004796fd
add esp, 4
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
test byte [esp + 0x14], 1
mov dword [esp + 0x30c], 7
je 0x50e61f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
and ecx, 0xfffffffe
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50e61f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
je 0x50f02b
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
jbe 0x50f02b
jmp 0x50e640
push 9
push str.shapedata
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00404250
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0xa
call fcn.004d0860
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
cmp dword [esp + 0xe0], ebp
mov byte [esp + 0x30c], 7
jb 0x50e6b4
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jne 0x50f011
push 0xb
push str.specialpath
lea ecx, [esp + 0x15c]
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
call fcn.00404250
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0xb
call fcn.004d1aa0
cmp dword [esp + 0x16c], ebp
mov byte [esp + 0x30c], 7
jb 0x50e740
mov ecx, dword [esp + 0x158]
push ecx
call fcn.004796fd
add esp, 4
push 0xa
push str.shapeindex
lea ecx, [esp + 0x140]
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
call fcn.00404250
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0xc
call fcn.004d1640
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
cmp dword [esp + 0x150], ebp
mov byte [esp + 0x30c], 7
jb 0x50e7c9
mov ecx, dword [esp + 0x13c]
push ecx
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
mov dword [esp + 0x150], edi
mov dword [esp + 0x14c], ebx
mov byte [esp + 0x13c], bl
jne 0x50f011
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x48], 0x599e5c
push 5
push str.model
lea ecx, [esp + 0x178]
mov byte [esp + 0x314], 0xd
mov dword [esp + 0x190], edi
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
call fcn.00404250
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0xe
call fcn.004d1aa0
mov esi, eax
cmp dword [esp + 0x188], ebp
mov byte [esp + 0x30c], 0xd
jb 0x50e870
mov ecx, dword [esp + 0x174]
push ecx
call fcn.004796fd
add esp, 4
cmp esi, ebx
mov dword [esp + 0x188], edi
mov dword [esp + 0x184], ebx
mov byte [esp + 0x174], bl
je 0x50e8fd
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x280]
push ecx
call fcn.00445ce0
add esp, 0xc
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x30c], 0xf
jb 0x50e8b8
mov eax, dword [eax + 4]
jmp 0x50e8bb
add eax, 4
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push eax
push edx
call fcn.0050daf0
cmp dword [esp + 0x290], ebp
jb 0x50e8e3
mov eax, dword [esp + 0x27c]
push eax
call fcn.004796fd
add esp, 4
mov dword [esp + 0x290], edi
mov dword [esp + 0x28c], ebx
mov byte [esp + 0x27c], bl
jmp 0x50e9a8
push str.local_model
lea ecx, [esp + 0x2d0]
call fcn.004050a0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x2d0]
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x10
call fcn.004d1aa0
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
cmp dword [esp + 0x2e4], ebp
mov byte [esp + 0x30c], 0xd
jb 0x50e95a
mov eax, dword [esp + 0x2d0]
push eax
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
mov dword [esp + 0x2e4], edi
mov dword [esp + 0x2e0], ebx
mov byte [esp + 0x2d0], bl
je 0x50e98b
lea ecx, [esp + 0x48]
mov byte [esp + 0x30c], 7
call fcn.0040f550
jmp 0x50f011
cmp dword [esp + 0x64], ebp
mov eax, dword [esp + 0x50]
jae 0x50e999
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x48]
call fcn.0050daf0
mov eax, 0x599e5c
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov dword [esp + 0x88], eax
push ebp
push str.local_sourceskin
lea ecx, [esp + 0xec]
mov byte [esp + 0x314], 0x12
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.00404250
mov eax, dword [esp + 0x14]
or eax, 4
lea edx, [esp + 0x6c]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x13
call fcn.004d1aa0
test eax, eax
je 0x50ea84
push str.local_targetskin
lea ecx, [esp + 0x2ec]
call fcn.004050a0
or dword [esp + 0x14], 8
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x2ec]
push edx
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 0x14
call fcn.004d1aa0
test eax, eax
mov byte [esp + 0x13], 1
jne 0x50ea88
mov byte [esp + 0x13], bl
test byte [esp + 0x14], 8
je 0x50eaca
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x300]
and ecx, 0xfffffff7
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50eab5
mov eax, dword [esp + 0x2ec]
push eax
call fcn.004796fd
add esp, 4
mov dword [esp + 0x300], edi
mov dword [esp + 0x2fc], ebx
mov byte [esp + 0x2ec], bl
test byte [esp + 0x14], 4
mov esi, 0x12
mov dword [esp + 0x30c], esi
je 0x50eb18
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xfc]
and ecx, 0xfffffffb
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50eb03
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004796fd
add esp, 4
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
cmp byte [esp + 0x13], bl
je 0x50eb57
cmp dword [esp + 0xa4], ebp
mov ecx, dword [esp + 0x90]
jae 0x50eb35
lea ecx, [esp + 0x90]
cmp dword [esp + 0x84], ebp
mov eax, dword [esp + 0x70]
jae 0x50eb46
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x44]
push eax
push ebx
push edx
call fcn.0050dbb0
push 0xa
push str.sourceskin
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], edi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.00404250
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x104]
or edx, ebp
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x15
mov dword [esp + 0x1c], edx
call fcn.004d1aa0
test eax, eax
je 0x50ebfa
push str.targetskin
lea ecx, [esp + 0x2b4]
call fcn.004050a0
mov ecx, dword [esp + 0x14]
or ecx, 0x20
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x2b4]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 0x16
call fcn.004d1aa0
test eax, eax
mov byte [esp + 0x13], 1
jne 0x50ebfe
mov byte [esp + 0x13], bl
test byte [esp + 0x14], 0x20
je 0x50ec40
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c8]
and ecx, 0xffffffdf
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50ec2b
mov ecx, dword [esp + 0x2b4]
push ecx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x2c8], edi
mov dword [esp + 0x2c4], ebx
mov byte [esp + 0x2b4], bl
test byte [esp + 0x14], 0x10
mov dword [esp + 0x30c], esi
je 0x50ec89
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x118]
and ecx, 0xffffffef
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50ec74
mov edx, dword [esp + 0x104]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
cmp byte [esp + 0x13], bl
je 0x50ed73
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x1b0]
push edx
call fcn.00445ce0
mov esi, eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x2a8]
push edx
mov byte [esp + 0x324], 0x17
call fcn.00445ce0
add esp, 0x18
cmp dword [esi + 0x18], ebp
mov byte [esp + 0x30c], 0x18
jb 0x50ece9
mov esi, dword [esi + 4]
jmp 0x50ecec
add esi, 4
cmp dword [eax + 0x18], ebp
jb 0x50ecf6
mov eax, dword [eax + 4]
jmp 0x50ecf9
add eax, 4
mov ecx, dword [esp + 0x40]
push esi
push eax
mov eax, dword [esp + 0x24]
push ebx
push eax
call fcn.0050dbb0
cmp dword [esp + 0x2ac], ebp
jb 0x50ed23
mov ecx, dword [esp + 0x298]
push ecx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x1c0], ebp
mov dword [esp + 0x2ac], edi
mov dword [esp + 0x2a8], ebx
mov byte [esp + 0x298], bl
mov byte [esp + 0x30c], 0x12
jb 0x50ed59
mov edx, dword [esp + 0x1ac]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x1c0], edi
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
mov esi, 0x12
push 0xb
push str.sourceskin2
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
or edx, 0x40
push ecx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x19
mov dword [esp + 0x1c], edx
call fcn.004d1aa0
test eax, eax
je 0x50ee0b
push str.targetskin2
lea ecx, [esp + 0x120]
call fcn.004050a0
mov ecx, dword [esp + 0x14]
or ecx, 0x80
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x120]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 0x1a
call fcn.004d1aa0
test eax, eax
mov byte [esp + 0x13], 1
jne 0x50ee0f
mov byte [esp + 0x13], bl
mov al, byte [esp + 0x14]
test al, al
jns 0x50ee55
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x134]
and ecx, 0xffffff7f
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50ee40
mov ecx, dword [esp + 0x120]
push ecx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
mov byte [esp + 0x120], bl
test byte [esp + 0x14], 0x40
mov dword [esp + 0x30c], esi
je 0x50ee8f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
and ecx, 0xffffffbf
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50ee83
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp byte [esp + 0x13], bl
je 0x50ef74
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x194]
push edx
call fcn.00445ce0
mov esi, eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x1d8]
push edx
mov byte [esp + 0x324], 0x1b
call fcn.00445ce0
add esp, 0x18
cmp dword [esi + 0x18], ebp
mov byte [esp + 0x30c], 0x1c
jb 0x50eeef
mov esi, dword [esi + 4]
jmp 0x50eef2
add esi, 4
cmp dword [eax + 0x18], ebp
jb 0x50eefc
mov eax, dword [eax + 4]
jmp 0x50eeff
add eax, 4
mov ecx, dword [esp + 0x40]
push esi
push eax
mov eax, dword [esp + 0x24]
push ebx
push eax
call fcn.0050dbb0
cmp dword [esp + 0x1dc], ebp
jb 0x50ef29
mov ecx, dword [esp + 0x1c8]
push ecx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x1a4], ebp
mov dword [esp + 0x1dc], edi
mov dword [esp + 0x1d8], ebx
mov byte [esp + 0x1c8], bl
mov byte [esp + 0x30c], 0x12
jb 0x50ef5f
mov edx, dword [esp + 0x190]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x1a4], edi
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], bl
lea ecx, [esp + 0x1e0]
call fcn.004d0510
cmp dword [esp + 0xa4], ebp
mov esi, 0x599e5c
mov dword [esp + 0x88], esi
jb 0x50efa5
mov eax, dword [esp + 0x90]
push eax
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x84], ebp
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov dword [esp + 0x68], esi
jb 0x50efd4
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x30c], 7
mov dword [esp + 0x48], esi
jb 0x50f005
mov edx, dword [esp + 0x50]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jb 0x50e640
mov esi, 0x599e5c
lea ecx, [esp + 0x1e0]
call fcn.004d0510
cmp dword [esp + 0xc4], ebp
mov byte [esp + 0x30c], bl
mov dword [esp + 0xa8], esi
jb 0x50f065
mov eax, dword [esp + 0xb0]
push eax
call fcn.004796fd
add esp, 4
jmp 0x50f065
mov ebp, 0x10
push str.hairdata
lea ecx, [esp + 0x1e4]
call fcn.004d07e0
test eax, eax
je 0x50f6df
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x48], esi
push 8
push str.pathname
lea ecx, [esp + 0x124]
mov byte [esp + 0x314], 0x1d
mov dword [esp + 0x44], ebx
mov dword [esp + 0x13c], edi
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
call fcn.00404250
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x120]
or eax, 0x100
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x1e
mov dword [esp + 0x1c], eax
call fcn.004d1aa0
test eax, eax
je 0x50f148
push 0xd
push str.hairdatacount
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
or edx, 0x200
push ecx
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 0x1f
mov dword [esp + 0x1c], edx
call fcn.004d1640
test eax, eax
mov byte [esp + 0x13], 1
jne 0x50f14c
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x14]
test ah, 2
je 0x50f182
mov ecx, eax
mov eax, dword [esp + 0x38]
and ecx, 0xfffffdff
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50f176
mov edx, dword [esp + 0x24]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x14]
test ah, 1
mov dword [esp + 0x30c], 0x1d
je 0x50f1bd
mov ecx, eax
mov eax, dword [esp + 0x134]
and ecx, 0xfffffeff
cmp eax, ebp
mov dword [esp + 0x14], ecx
jb 0x50f1bd
mov eax, dword [esp + 0x120]
push eax
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
je 0x50f6a9
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
jbe 0x50f6a9
push 8
push str.hairdata
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00404250
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x20
call fcn.004d0860
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x30c], 0x1d
jb 0x50f234
mov eax, dword [esp + 0x24]
push eax
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jne 0x50f694
push 0xb
push str.specialpath
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], edi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.00404250
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x21
call fcn.004d1aa0
cmp dword [esp + 0x118], ebp
mov byte [esp + 0x30c], 0x1d
jb 0x50f2b4
mov eax, dword [esp + 0x104]
push eax
call fcn.004796fd
add esp, 4
push 9
push str.hairindex
lea ecx, [esp + 0xec]
mov dword [esp + 0x120], edi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.00404250
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x22
call fcn.004d1640
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
cmp dword [esp + 0xfc], ebp
mov byte [esp + 0x30c], 0x1d
jb 0x50f33d
mov eax, dword [esp + 0xe8]
push eax
call fcn.004796fd
add esp, 4
cmp byte [esp + 0x13], bl
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
jne 0x50f694
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x68], esi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0xa8], esi
push str.model
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x310], 0x25
call fcn.004050a0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x1ac]
or eax, 0x400
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x314], 0x26
mov dword [esp + 0x1c], eax
call fcn.004d1aa0
test eax, eax
je 0x50f492
push str.sourceskin
lea ecx, [esp + 0x1c8]
call fcn.004050a0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c8]
or edx, 0x800
push ecx
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 0x27
mov dword [esp + 0x1c], edx
call fcn.004d1aa0
test eax, eax
je 0x50f492
push str.targetskin
lea ecx, [esp + 0x190]
call fcn.004050a0
mov ecx, dword [esp + 0x14]
or ecx, 0x1000
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x190]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1e8]
mov dword [esp + 0x314], 0x28
call fcn.004d1aa0
test eax, eax
mov byte [esp + 0x13], 1
jne 0x50f496
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x14]
test ah, 0x10
je 0x50f4b4
and eax, 0xffffefff
lea ecx, [esp + 0x18c]
mov dword [esp + 0x14], eax
call fcn.004e5320
mov eax, dword [esp + 0x14]
test ah, 8
je 0x50f4d2
and eax, 0xfffff7ff
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x14], eax
call fcn.004e5320
mov eax, dword [esp + 0x14]
test ah, 4
mov dword [esp + 0x30c], 0x25
je 0x50f4fb
and eax, 0xfffffbff
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x14], eax
call fcn.004e5320
cmp byte [esp + 0x13], bl
je 0x50f5ea
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x124]
push eax
call fcn.00445ce0
mov esi, eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x28c]
push eax
mov byte [esp + 0x324], 0x29
call fcn.00445ce0
mov edi, eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x2b4]
push eax
mov byte [esp + 0x330], 0x2a
call fcn.00445ce0
add esp, 0x24
mov edx, dword [esi + 0x18]
mov ecx, 0x10
cmp edx, ecx
mov byte [esp + 0x30c], 0x2b
jb 0x50f580
mov esi, dword [esi + 4]
jmp 0x50f583
add esi, 4
cmp dword [edi + 0x18], ecx
jb 0x50f58d
mov edi, dword [edi + 4]
jmp 0x50f590
add edi, 4
cmp dword [eax + 0x18], ecx
jb 0x50f59a
mov eax, dword [eax + 4]
jmp 0x50f59d
add eax, 4
mov ecx, dword [esp + 0x1c]
push esi
push edi
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x54]
call fcn.0050d8d0
lea ecx, [esp + 0x294]
call fcn.004e5320
lea ecx, [esp + 0x278]
call fcn.004e5320
lea ecx, [esp + 0x11c]
mov byte [esp + 0x30c], 0x25
call fcn.004e5320
mov edi, 0xf
mov ebp, 0x10
mov esi, 0x599e5c
lea ecx, [esp + 0x1e0]
call fcn.004d0510
cmp dword [esp + 0xc4], ebp
mov dword [esp + 0xa8], esi
jb 0x50f616
mov edx, dword [esp + 0xb0]
push edx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x84], ebp
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0x68], esi
jb 0x50f645
mov eax, dword [esp + 0x70]
push eax
call fcn.004796fd
add esp, 4
cmp dword [esp + 0xa4], ebp
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x30c], 0x1d
mov dword [esp + 0x88], esi
jb 0x50f67f
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004796fd
add esp, 4
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x50f1d5
lea ecx, [esp + 0x1e0]
call fcn.004d0510
cmp dword [esp + 0x64], ebp
mov byte [esp + 0x30c], bl
mov dword [esp + 0x48], esi
jb 0x50f6d3
mov edx, dword [esp + 0x50]
push edx
call fcn.004796fd
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
push str.attachingdata
lea ecx, [esp + 0x1e4]
call fcn.004d07e0
test eax, eax
je 0x50f722
mov eax, dword [esp + 0x40]
add eax, 0x110
push eax
lea ecx, [esp + 0x1e4]
push ecx
call fcn.00516900
add esp, 8
test eax, eax
lea ecx, [esp + 0x1e0]
je 0x50e35b
call fcn.004d0510
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x30c], 0xffffffff
call fcn.004d2700
mov eax, 1
pop ebp
pop esi
mov ecx, dword [esp + 0x2fc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x300
ret 4