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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [esi + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
movlpd qword [esp + 0x78], xmm0
test edi, edi
je 0x4ca241
xor ecx, ecx
cmp dword [edi], 0x40
cmovge edi, ecx
mov dword [esp + 0x30], edi
mov al, byte [eax + 0x44]
mov ecx, dword [ebp + 0x14]
and al, 0x10
mov byte [esp + 0x43], al
mov eax, ecx
and eax, 0xfeff
mov dword [esp + 0x70], edi
cmp byte [esp + 0x43], 0
movzx edx, ax
movzx eax, cx
cmove edx, eax
movzx eax, dx
mov ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x4ca2a0
push 0x40
push str.at_most__d_tables_in_a_join
push esi
call fcn.0045c440
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
test al, 0x20
mov eax, 1
push 0
cmovne ecx, eax
mov dword [esp + 0x3c], ecx
lea esi, [ecx + ecx*4]
mov ecx, dword [esp + 0x28]
shl esi, 4
lea eax, [esi + 0x2f7]
and eax, 0xfffffff8
mov dword [esp + 0x4c], eax
add eax, 0x48
push eax
call fcn.004595f0
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x49], 0
je 0x4ca302
mov edx, ecx
mov ecx, eax
call fcn.004592d0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], edi
mov dword [ecx + 0x1c], 0xffffffff
mov dword [ecx + 0x18], 0xffffffff
mov byte [ecx + 0x2e], al
mov ecx, dword [esp + 0x34]
call fcn.00478ac0
mov ecx, dword [esp + 0x10]
xorps xmm0, xmm0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x2c]
mov word [ecx + 0x2c], ax
mov eax, dword [ebp + 0x18]
mov word [ecx + 0x14], ax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x84]
mov dword [ecx + 0x28], eax
lea eax, [esi + 0x48]
movups xmmword [ecx + 0x2f], xmm0
push eax
movups xmmword [ecx + 0x3f], xmm0
mov byte [ecx + 0x4f], 0
add ecx, 0x2f0
push 0
push ecx
mov dword [esp + 0x60], ecx
call fcn.00517340
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
add ecx, esi
mov dword [esp + 0x74], ecx
lea eax, [esi + 0x50]
mov dword [esp + 0x68], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x6c], eax
lea eax, [ecx + 0x38]
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
mov dword [ecx + 0x24], 0
lea ecx, [esi + 0x50]
mov dword [esi + 0x1ec], 0
lea eax, [ecx + 0x18]
push 0x2c
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.004c49a0
add esp, 4
cmp dword [esp + 0x38], 0
jne 0x4ca425
test edi, edi
je 0x4ca411
mov al, byte [edi]
mov byte [esi + 0x2f], al
test dword [esp + 0x2c], 0x100
mov eax, dword [esp + 0x14]
je 0x4ca46c
mov byte [esi + 0x33], 1
jmp 0x4ca46c
mov esi, dword [esp + 0x14]
xor edi, edi
add esi, 8
nop
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
push dword [esp + 0x44]
mov ecx, dword [edx + 0x1ec]
mov dword [edx + ecx*4 + 0x1f0], eax
inc dword [edx + 0x1ec]
mov edx, esi
mov ecx, dword [esp + 0x1c]
call fcn.004c4cc0
mov eax, dword [esp + 0x18]
inc edi
add esp, 4
add esi, 0x50
cmp edi, dword [eax]
jl 0x4ca430
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
mov esi, dword [esi + 0xc]
sub esi, 1
js 0x4ca49a
mov edi, dword [esp + 0x44]
nop dword [eax]
push esi
mov edx, edi
mov ecx, eax
call fcn.004c3b70
mov eax, dword [esp + 0x18]
add esp, 4
sub esi, 1
jns 0x4ca480
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x49], 0
jne 0x4ca60c
mov esi, dword [esp + 0x44]
cmp dword [esi + 0xc], 0
jle 0x4ca56b
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
nop
mov esi, dword [esi + 0x14]
add esi, ecx
test byte [esi + 0xa], 2
jne 0x4ca552
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x4ca552
cmp dword [esp + 0x38], eax
je 0x4ca532
mov edx, dword [esi]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x98], eax
mov byte [esp + 0x94], 1
mov dword [esp + 0x84], 0x4ca1b0
mov dword [esp + 0x88], 0x48f200
test edx, edx
je 0x4ca532
lea ecx, [esp + 0x80]
call fcn.0048ab90
cmp byte [esp + 0x94], 0
je 0x4ca54e
mov eax, dword [esp + 0x10]
push 0x10
push dword [eax + 0x24]
push dword [esi]
push dword [esp + 0x24]
call fcn.00493c70
add esp, 0x10
or word [esi + 0xa], 4
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
inc edi
add ecx, 0x30
mov dword [esp + 0x1c], ecx
cmp edi, dword [esi + 0xc]
jl 0x4ca4c0
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
and eax, 0x100
mov dword [esp + 0x60], eax
je 0x4ca5b7
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x48]
call fcn.004c5370
add esp, 8
test eax, eax
je 0x4ca5a1
mov edi, dword [esp + 0x10]
mov byte [edi + 0x33], 1
jmp 0x4ca5bb
test edi, edi
mov edi, dword [esp + 0x10]
jne 0x4ca5bb
mov eax, 0x80
mov dword [edi + 8], esi
or word [edi + 0x2c], ax
jmp 0x4ca5bb
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x38], 1
jne 0x4ca5cf
lea ecx, [esp + 0x68]
call fcn.004c9ff0
test eax, eax
jne 0x4ca63e
lea ecx, [esp + 0x68]
call fcn.004c8cb0
test eax, eax
jne 0x4ca60c
xor edx, edx
mov ecx, edi
call fcn.004c9720
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x49], 0
jne 0x4ca60c
cmp dword [edi + 8], 0
je 0x4ca648
movzx edx, word [edi + 0x48]
mov ecx, edi
inc dx
call fcn.004c9720
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x49], 0
je 0x4ca642
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x84], eax
mov edx, ecx
mov ecx, dword [esp + 0x24]
call fcn.004c6600
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
cmp dword [edi + 8], 0
jne 0x4ca65f
test dword [ecx + 0x1c], 0x1000
je 0x4ca65f
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x24], 0
jne 0x4ca60c
cmp byte [ecx + 0x49], 0
jne 0x4ca60c
cmp byte [edi + 0x2e], 2
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
jb 0x4ca833
test esi, esi
je 0x4ca833
mov eax, 0x100
test word [ecx + 0x44], ax
jne 0x4ca833
mov edx, esi
lea ecx, [edi + 0x1e8]
call fcn.004c4c20
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4ca6d0
lea ecx, [edi + 0x1e8]
call fcn.004c4c20
or dword [esp + 0x1c], eax
or dword [esp + 0x20], edx
movzx esi, byte [edi + 0x2e]
dec esi
mov dword [esp + 0x3c], esi
cmp esi, 1
jl 0x4ca833
lea eax, [esi + esi*4]
shl eax, 4
add eax, 0x2f0
add eax, edi
mov dword [esp + 0x28], eax
mov edx, dword [eax + 0x40]
mov dword [esp + 0x50], edx
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x64], eax
test byte [eax + 0x2c], 8
je 0x4ca81a
cmp word [esp + 0x60], 0
jne 0x4ca72c
test dword [edx + 0x24], 0x1000
je 0x4ca81a
mov eax, dword [edx + 8]
mov ecx, eax
mov edx, dword [edx + 0xc]
and ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, edx
and eax, dword [esp + 0x20]
or ecx, eax
mov dword [esp + 0x48], edx
jne 0x4ca81a
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 0x14]
mov esi, edx
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
shl edi, 4
add edi, edx
cmp esi, edi
jae 0x4ca79a
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [esp + 0x58]
and eax, dword [esp + 0x48]
or ecx, eax
je 0x4ca78d
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x4ca796
mov ecx, dword [esp + 0x64]
movsx eax, word [eax + 0x24]
cmp eax, dword [ecx + 0x38]
jne 0x4ca796
add esi, 0x30
cmp esi, edi
jb 0x4ca766
jmp 0x4ca79a
cmp esi, edi
jb 0x4ca812
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
not eax
and dword [esp + 0x4c], eax
not ecx
and dword [esp + 0x30], ecx
cmp edx, edi
jae 0x4ca7d2
mov esi, dword [esp + 0x50]
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [esi + 8]
and eax, dword [esi + 0xc]
or ecx, eax
je 0x4ca7cb
or word [edx + 0xa], 4
add edx, 0x30
cmp edx, edi
jb 0x4ca7b6
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
mov cl, byte [edi + 0x2e]
movzx edx, cl
lea eax, [edx - 1]
cmp esi, eax
je 0x4ca807
mov ecx, dword [esp + 0x28]
sub edx, esi
lea eax, [edx + edx*4]
shl eax, 4
sub eax, 0x50
push eax
lea eax, [ecx + 0x50]
push eax
push ecx
call fcn.00516dc0
mov cl, byte [edi + 0x2e]
add esp, 0xc
dec cl
dec dword [esp + 0x38]
mov byte [edi + 0x2e], cl
jmp 0x4ca81a
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
dec esi
sub eax, 0x50
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], eax
cmp esi, 1
jge 0x4ca6f3
mov ecx, dword [edi]
movsx eax, word [edi + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
add dword [ecx + 0x84], eax
test dl, 4
je 0x4ca8e2
mov eax, dword [edi + 0x330]
mov ecx, dword [eax + 0x24]
test ecx, 0x1000
jne 0x4ca897
mov dword [esp + 0x28], 0
test dl, 8
je 0x4ca8e2
mov dword [esp + 0x28], 0
test ecx, 0x400
jne 0x4ca8e2
test ecx, 0x2000
je 0x4ca897
mov dword [esp + 0x28], 0
test dl, 0x10
je 0x4ca8e2
mov edx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x1000
mov dword [esp + 0x28], 0
neg eax
sbb al, al
add al, 2
mov byte [edi + 0x31], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x24], 0x20
jne 0x4ca8e6
mov dword [esp + 0x28], 0
test cl, 0x40
je 0x4ca8e6
mov eax, dword [edi + 0x330]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
mov eax, dword [esp + 0x2c]
and eax, 8
mov dword [esp + 0x28], eax
jmp 0x4ca8e6
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x4cab5a
mov eax, dword [esp + 0x54]
add eax, 0x40
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
movzx eax, byte [eax - 0x14]
mov edi, 0xfff0bdc0
lea eax, [eax + eax*4]
shl eax, 4
add edx, eax
mov dword [esp + 0x20], edx
mov esi, dword [edx + 0x18]
mov dword [esp + 0x54], esi
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4ca93c
mov eax, dword [esp + 0x24]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4ca93c
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4ca934
test byte [esi + 0x24], 2
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
jne 0x4caabd
cmp dword [esi + 0xc], 0
jne 0x4caabd
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x4ca99b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4ca97b
mov ecx, dword [esp + 0x24]
nop
cmp dword [eax], ecx
je 0x4ca97b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4ca970
mov ecx, dword [esp + 0x34]
push 0xfffffffffffffff4
push eax
push 0
push 0
push dword [edx + 0x38]
mov edx, 0x9e
call fcn.00478930
add esp, 0x14
jmp 0x4caab9
cmp dword [esi + 0x38], 0
jne 0x4caabd
test al, 0x40
jne 0x4caaa4
test byte [esp + 0x2c], 0x20
jne 0x4caaa4
mov edx, dword [esp + 0x10]
mov ecx, 0x6a
cmp byte [edx + 0x31], 0
je 0x4ca9d6
mov eax, dword [esp + 0x20]
mov ecx, 0x6b
mov eax, dword [eax + 0x38]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [eax + 0x38]
push edi
call fcn.004a6be0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp byte [eax + 0x31], 0
jne 0x4caa95
cmp word [esi + 0x2a], 0x40
jge 0x4caa95
test byte [esi + 0x24], 0x20
jne 0x4caa95
mov eax, dword [esp + 0x20]
xor esi, esi
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x4c]
mov eax, edx
or eax, ecx
je 0x4caa2e
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x4caa21
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
cmp byte [ecx + 0x49], 0
je 0x4caa57
push esi
mov edx, 0xfffffffd
call fcn.00479010
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x34]
call fcn.00478e40
jmp 0x4caab9
mov eax, dword [edx + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4caa8e
mov ecx, dword [esp + 0x34]
mov edx, eax
push 0xfffffffffffffffd
push esi
call fcn.004791a0
mov edx, dword [esp + 0x30]
add esp, 8
mov ecx, dword [esp + 0x34]
call fcn.00478e40
jmp 0x4caab9
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfd
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
call fcn.00478e40
jmp 0x4caab9
push dword [esi]
mov ecx, dword [esp + 0x1c]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.00497f90
add esp, 0xc
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x24], 0x200
je 0x4cab04
mov eax, dword [esp + 0x54]
mov edx, 0x6a
mov esi, dword [ecx + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], esi
test byte [eax + 0x24], 0x20
je 0x4cac4a
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x4cac4a
test cl, 0x20
je 0x4cac4a
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0x3c]
mov dword [ecx - 0x38], eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x4cab38
mov eax, dword [esi + 0x78]
mov edx, esi
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x5c]
test esi, eax
jne 0x4cab38
bts esi, edi
mov dword [edx + 0x5c], esi
cmp edi, 1
jne 0x4cab38
mov ecx, edx
call fcn.0049df20
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
add eax, 0x50
sub dword [esp + 0x48], 1
mov dword [esp + 0x3c], eax
jne 0x4ca901
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x88]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x49], 0
jne 0x4ca60c
xor edi, edi
test ecx, ecx
jle 0x4cad17
mov esi, dword [esp + 0x10]
add esi, 0x31c
nop dword [eax]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x4cabd9
mov ecx, dword [esp + 0x14]
lea eax, [esi - 0x2c]
mov edx, dword [esp + 0x44]
add ecx, 8
push eax
movzx eax, byte [esi]
push dword [esp + 0x34]
push dword [esp + 0x54]
lea eax, [eax + eax*4]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x24]
push eax
call fcn.004c5660
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp byte [eax + 0x49], 0
jne 0x4ca60c
push dword [esp + 0x2c]
movzx eax, byte [esi]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esi - 0x2c]
push edi
push eax
call fcn.004bf730
mov eax, dword [esp + 0x44]
mov edx, edi
push dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x60]
mov eax, dword [eax + 0x88]
mov dword [esi - 0xc], eax
call fcn.004c0930
mov ecx, dword [esi - 0x14]
inc edi
mov dword [esp + 0x64], eax
add esp, 0x18
mov eax, dword [esp + 0x10]
add esi, 0x50
mov dword [esp + 0x30], edx
mov dword [eax + 0x20], ecx
cmp edi, dword [esp + 0x38]
jl 0x4cab90
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x31], 0
je 0x4cac80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x4cac72
cmp eax, esi
je 0x4cac72
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x4cac66
mov eax, dword [esp + 0x10]
mov edx, 0x6b
mov dword [eax + 0x1c], ecx
jmp 0x4caca7
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4cac96
test cl, 0x20
je 0x4cac96
mov ecx, eax
mov edx, 0x69
jmp 0x4caca9
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x28], eax
mov eax, ecx
mov esi, dword [esp + 0x3c]
push edi
mov dword [esi - 0x38], eax
mov esi, dword [esp + 0x54]
push dword [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00478530
add esp, 0xc
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00479340
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x24]
test al, 0xf
je 0x4cab08
test eax, 0x8002
jne 0x4cab08
mov eax, dword [esp + 0x10]
test byte [eax + 0x2c], 1
jne 0x4cab08
cmp byte [eax + 0x33], 2
je 0x4cab08
mov ecx, dword [esp + 0x34]
mov edx, 2
call fcn.00478e40
jmp 0x4cab08
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret