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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
push esi
mov esi, dword [0x103f3c74]
mov dword [esp + 0x14], edx
mov edx, ecx
push edi
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 0x198c]
mov dword [esp + 0x28], esi
mov byte [eax + 0x7c], 1
mov eax, dword [esi + 0x198c]
mov dword [esp + 0x48], eax
cmp byte [eax + 0x7f], 0
je 0x10055634
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test byte [ebp + 8], 0x10
movss xmm0, dword [esi + 0x1538]
addss xmm0, xmm0
addss xmm0, dword [esi + 0x18ac]
movss dword [esp + 0x88], xmm0
je 0x1005565c
xorps xmm3, xmm3
jmp 0x10055668
movss xmm3, dword [esi + 0x154c]
addss xmm3, xmm0
mov edi, eax
xorps xmm0, xmm0
movss xmm2, dword [edi + 0x16c]
comiss xmm0, xmm2
jbe 0x100556ef
movss xmm4, dword [edi + 0xc8]
movss xmm1, dword [edi + 0x214]
mov ecx, dword [edi + 0x1bc]
subss xmm4, dword [edi + 0xc]
subss xmm1, dword [edi + 0xc]
test ecx, ecx
je 0x100556db
mov edx, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [edi + 0x1bc]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0x3c]
mulss xmm1, dword [eax + ecx*4]
addss xmm1, xmm0
subss xmm1, dword [edi + 0x3c]
subss xmm1, xmm4
addss xmm1, xmm2
movss xmm2, dword [0x103b71f0]
maxss xmm2, xmm1
mov dword [esp + 0x68], edx
mov edi, edx
cvttss2si eax, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm3
movss dword [esp + 0x1c], xmm0
cmp edx, 0xffffffff
jae 0x10055729
nop
mov al, byte [edi]
test al, al
je 0x10055725
cmp al, 0x23
jne 0x1005571f
cmp byte [edi + 1], al
je 0x10055725
inc edi
cmp edi, 0xffffffff
jb 0x10055710
mov dword [esp + 0x68], edi
call fcn.100395f0
mov ecx, dword [esp + 0x3c]
call fcn.100394d0
mov ecx, dword [ebp + 8]
mov dword [esp + 0x8c], ecx
test cl, 0x20
je 0x10055755
and ecx, 0xff9fffff
or ecx, 0x100008
mov dword [ebp + 8], ecx
test cl, 8
jne 0x10055768
mov edx, ecx
mov ecx, dword [esp + 0x18]
call fcn.100595e0
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x2bf0]
test ecx, 0x700000
jne 0x1005577f
mov eax, edx
and eax, 0x700000
or ecx, eax
test ecx, 0x1800000
jne 0x10055790
mov eax, edx
and eax, 0x1800000
or ecx, eax
test ecx, 0x6000000
jne 0x100557a1
mov eax, edx
and eax, 0x6000000
or ecx, eax
and edx, 0xf80fffff
or ecx, edx
mov edx, ecx
mov dword [ebp + 8], ecx
shr edx, 1
mov eax, ecx
shr eax, 0x13
not dl
and eax, 0xffffff01
and edx, 0xffffff01
mov dword [esp + 0x64], eax
movzx eax, dl
add eax, 3
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
movss xmm2, dword [eax]
movss xmm5, dword [eax + 4]
movss xmm1, dword [eax + 8]
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x34], xmm1
test dl, dl
je 0x10055809
movss xmm0, dword [eax + 0xc]
movss dword [esp + 0x38], xmm0
jmp 0x10055811
mov dword [esp + 0x38], 0x3f800000
mov eax, ecx
and eax, 0x200000
mov dword [esp + 0x6c], eax
je 0x100558ae
comiss xmm1, xmm5
xorps xmm4, xmm4
movaps xmm3, xmm5
jbe 0x1005583b
movss xmm4, dword [0x103b742c]
movaps xmm3, xmm1
movaps xmm1, xmm5
comiss xmm3, xmm2
movaps xmm5, xmm2
jbe 0x10055858
movss xmm0, dword [0x103b7418]
movaps xmm5, xmm3
subss xmm0, xmm4
movaps xmm3, xmm2
movaps xmm4, xmm0
movaps xmm0, xmm3
movaps xmm2, xmm5
minss xmm0, xmm1
subss xmm3, xmm1
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x103b72c4]
addss xmm0, dword [0x103b710c]
divss xmm3, xmm0
addss xmm3, xmm4
movaps xmm0, xmm3
call fcn.1000e970
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm5
addss xmm0, dword [0x103b710c]
movss dword [esp + 0x34], xmm5
divss xmm2, xmm0
movss dword [esp + 0x30], xmm2
movss xmm0, dword [esp + 0x2c]
xorps xmm4, xmm4
comiss xmm0, xmm4
movss xmm2, dword [0x103b741c]
movss xmm1, dword [0x103b71a8]
jb 0x100558d1
movaps xmm5, xmm1
jmp 0x100558d4
movaps xmm5, xmm2
movss xmm0, dword [esp + 0x2c]
movss xmm3, dword [0x103b7390]
mulss xmm0, xmm3
addss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x30]
comiss xmm0, xmm4
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
jb 0x10055906
movaps xmm5, xmm1
jmp 0x10055909
movaps xmm5, xmm2
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm3
addss xmm0, xmm5
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x34]
comiss xmm0, xmm4
mov dword [esp + 0x50], esi
jb 0x1005592f
movaps xmm5, xmm1
jmp 0x10055932
movaps xmm5, xmm2
movss xmm0, dword [esp + 0x34]
mulss xmm0, xmm3
addss xmm0, xmm5
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0x38]
comiss xmm0, xmm4
mov dword [esp + 0x54], edx
jae 0x10055956
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x38]
mulss xmm0, xmm3
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], eax
test ecx, 0x300000
je 0x10055d9d
test cl, 0x20
jne 0x10055d9d
mov edx, dword [esp + 0x40]
movss xmm4, dword [esp + 0x1c]
movaps xmm1, xmm4
lea eax, [edx - 1]
movd xmm3, eax
mov eax, dword [esp + 0x28]
cvtdq2ps xmm3, xmm3
movss xmm2, dword [eax + 0x154c]
movaps xmm0, xmm3
mulss xmm0, xmm2
subss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x103b71f0]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
maxss xmm1, xmm0
addss xmm2, xmm1
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [0x103b71f0]
mulss xmm2, xmm3
movss xmm3, dword [0x103b7400]
subss xmm4, xmm2
cvttss2si eax, xmm4
movd xmm0, eax
mov eax, ecx
and eax, 0x1000000
mov ecx, str.M:000
mov dword [esp + 0x84], eax
mov eax, str.M:0.000
cmove eax, ecx
mov ecx, dword [0x103f3c74]
push ecx
cvtdq2ps xmm0, xmm0
push 0
push eax
lea eax, [esp + 0x2c]
push ecx
movss xmm2, dword [ecx + 0x18ac]
mov ecx, dword [ecx + 0x18a8]
maxss xmm1, xmm0
mov dword [esp], 0xbf800000
push eax
movss dword [esp + 0x94], xmm1
call fcn.1004b990
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [0x103b71e8]
mov dword [esp + 0x70], 0x103b4218
mov dword [esp + 0x74], 0x103b4214
mov dword [esp + 0x78], 0x103b4220
mov dword [esp + 0x7c], 0x103b421c
cvttss2si eax, xmm0
mov dword [esp + 0xc0], 0x103b422c
mov dword [esp + 0xc4], 0x103b422c
mov dword [esp + 0xc8], 0x103b422c
mov dword [esp + 0xcc], 0x103b422c
mov dword [esp + 0xd0], str.R:_3d
mov dword [esp + 0xd4], str.G:_3d
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x24], xmm0
mov dword [esp + 0xd8], str.B:_3d
mov dword [esp + 0xdc], str.A:_3d
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov dword [esp + 0xe0], str.H:_3d
mov dword [esp + 0xe4], str.S:_3d
mov dword [esp + 0xe8], str.V:_3d
mov dword [esp + 0xec], str.A:_3d
mov dword [esp + 0x90], str._0.3f
mov dword [esp + 0x94], str._0.3f
mov dword [esp + 0x98], str._0.3f
mov dword [esp + 0x9c], str._0.3f
mov dword [esp + 0xa0], str.R:_0.3f
mov dword [esp + 0xa4], str.G:_0.3f
mov dword [esp + 0xa8], str.B:_0.3f
mov dword [esp + 0xac], str.A:_0.3f
mov dword [esp + 0xb0], str.H:_0.3f
mov dword [esp + 0xb4], str.S:_0.3f
mov dword [esp + 0xb8], str.V:_0.3f
movss xmm0, dword [esp + 0x1c]
xor eax, eax
comiss xmm1, xmm0
mov dword [esp + 0xbc], str.A:_0.3f
jae 0x10055bc0
cmp dword [esp + 0x6c], eax
setne al
inc eax
mov dword [esp + 0x14], eax
call fcn.10038be0
xor esi, esi
cmp dword [esp + 0x40], esi
jbe 0x10055d09
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x28]
and eax, 8
shl dword [esp + 0x14], 4
mov dword [esp + 0x60], eax
test esi, esi
jle 0x10055bfc
movss xmm1, dword [edi + 0x154c]
xorps xmm0, xmm0
call fcn.100398b0
lea eax, [esi + 1]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x40]
jne 0x10055c17
movss xmm0, dword [esp + 0x80]
call fcn.10038be0
cmp dword [esp + 0x84], 0
je 0x10055c91
cmp byte [esp + 0x64], 0
mov eax, dword [esp + 0x14]
je 0x10055c31
xorps xmm0, xmm0
jmp 0x10055c39
movss xmm0, dword [0x103b71f0]
movss xmm3, dword [0x103b7144]
mov edx, 4
push ecx
mov ecx, dword [esp + esi*4 + 0x74]
mov dword [esp], 0x3f800000
push dword [esp + eax + 0x94]
lea eax, [esp + 0x24]
movss dword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push eax
lea eax, [esp + 0x3c]
lea eax, [eax + esi*4]
push eax
call fcn.10050bc0
mov cl, byte [esp + 0x26]
add esp, 0x14
or cl, al
or byte [esp + 0x13], cl
mov byte [esp + 0x12], cl
jmp 0x10055ce6
movss xmm3, dword [0x103b71f0]
xor ecx, ecx
cmp byte [esp + 0x64], cl
mov eax, 0xff
push ecx
cmovne eax, ecx
mov dword [esp], 0x3f800000
mov dword [esp + 0x60], eax
xor edx, edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + esi*4 + 0x74]
push dword [esp + eax + 0xc4]
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x5c]
lea eax, [eax + esi*4]
push eax
call fcn.10050bc0
add esp, 0x14
or byte [esp + 0x12], al
cmp dword [esp + 0x60], 0
jne 0x10055cf2
call fcn.10039d50
mov esi, dword [esp + 0x20]
add dword [esp + 0x14], 4
cmp esi, dword [esp + 0x40]
jl 0x10055be8
mov edi, dword [esp + 0x68]
mov edx, dword [0x103f3c74]
mov eax, dword [edx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [edx + 0x198c]
mov esi, dword [ecx + 0x180]
sub esi, 1
mov dword [ecx + 0x180], esi
jne 0x10055d3a
movss xmm0, dword [ecx + 0x220]
jmp 0x10055d46
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + esi*4 - 4]
movss dword [ecx + 0x16c], xmm0
mov eax, dword [edx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [edx + 0x198c]
mov edx, dword [ecx + 0x180]
sub edx, 1
mov dword [ecx + 0x180], edx
jne 0x10055d84
movss xmm0, dword [ecx + 0x220]
movss dword [ecx + 0x16c], xmm0
jmp 0x10055f49
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x16c], xmm0
jmp 0x10055f49
mov eax, ecx
and eax, 0x400020
cmp eax, 0x400000
jne 0x10055f4c
cmp byte [esp + 0x44], 0
je 0x10055e1d
mov ecx, dword [esp + 0x20]
mov eax, 0xff
mov dword [esp + 0x60], eax
test ecx, ecx
jns 0x10055dcb
xor ecx, ecx
jmp 0x10055dd0
cmp ecx, eax
cmovg ecx, eax
test edx, edx
jns 0x10055dd8
xor edx, edx
jmp 0x10055ddd
cmp edx, eax
cmovg edx, eax
test esi, esi
jns 0x10055de5
xor esi, esi
jmp 0x10055dea
cmp esi, eax
cmovg esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x10055df6
xor eax, eax
jmp 0x10055e00
cmp eax, 0xff
cmovg eax, dword [esp + 0x60]
push ecx
push edx
push esi
push eax
push 0x103b42a0
lea eax, [esp + 0xd4]
push 0x40
push eax
call fcn.1002ebd0
add esp, 0x1c
jmp 0x10055e6a
mov ecx, 0xff
test edx, edx
jns 0x10055e2a
xor edx, edx
jmp 0x10055e2f
cmp edx, ecx
cmovg edx, ecx
test esi, esi
jns 0x10055e37
xor esi, esi
jmp 0x10055e3c
cmp esi, ecx
cmovg esi, ecx
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x10055e48
xor eax, eax
jmp 0x10055e50
cmp eax, 0xff
cmovg eax, ecx
push edx
push esi
push eax
push 0x103b42c4
lea eax, [esp + 0xd0]
push 0x40
push eax
call fcn.1002ebd0
add esp, 0x18
movss xmm0, dword [esp + 0x1c]
call fcn.10038be0
sub esp, 8
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
lea edx, [esp + 0xc8]
mov ecx, str.Text
push 6
push eax
push 0x40
call fcn.10053500
add esp, 0x14
test al, al
je 0x10055f39
mov byte [esp + 0x12], 1
lea ecx, [esp + 0xc0]
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x23
je 0x10055ece
cmp al, 0x20
je 0x10055ece
cmp al, 9
jne 0x10055ed1
inc ecx
jmp 0x10055ec0
cmp byte [esp + 0x44], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
je 0x10055f1c
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
push eax
push str._02X_02X_02X_02X
push ecx
call fcn.1002d150
add esp, 0x18
jmp 0x10055f39
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
push str._02X_02X_02X
push ecx
call fcn.1002d150
add esp, 0x14
test byte [ebp + 8], 8
jne 0x10055f44
call fcn.10039d50
call fcn.10038c60
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], esi
test cl, 0x10
jne 0x100560f2
mov esi, dword [esp + 0x28]
test cl, 0x20
jne 0x10055f77
movss xmm1, dword [esi + 0x154c]
xorps xmm0, xmm0
call fcn.100398b0
mov ecx, dword [ebp + 8]
cmp byte [esp + 0x44], 0
mov eax, dword [esp + 0x18]
je 0x10055f89
movss xmm1, dword [eax + 0xc]
jmp 0x10055f91
movss xmm1, dword [0x103b71f0]
movss xmm0, dword [eax]
lea edx, [esp + 0x70]
mov dword [esp + 0x24], 0
push dword [esp + 0x24]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 4]
mov dword [esp + 0x24], 0
push dword [esp + 0x24]
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [eax + 8]
push ecx
mov ecx, str.ColorButton
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm1
call fcn.10058cf0
add esp, 0xc
test al, al
mov eax, dword [ebp + 8]
je 0x10056062
test al, 4
jne 0x10056062
movups xmm0, xmmword [esp + 0x70]
mov ecx, 0x103b42f8
movups xmmword [esi + 0x2bf4], xmm0
call fcn.10039b80
mov eax, dword [esp + 0x48]
movss xmm0, dword [esi + 0x1548]
movss xmm1, dword [eax + 0x114]
addss xmm0, dword [eax + 0x120]
mov eax, dword [0x103f3c74]
subss xmm1, dword [0x103b71f0]
movss dword [eax + 0x1a50], xmm0
mov dword [eax + 0x1a54], 0
movss dword [eax + 0x1a4c], xmm1
mov dword [eax + 0x1a58], 0
mov dword [eax + 0x1a30], 1
mov eax, dword [ebp + 8]
test al, 8
jne 0x1005606b
call fcn.10039d50
mov ecx, 0x103b42f8
call fcn.1003a050
test al, al
je 0x100560ed
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x198c]
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x10056099
mov edx, edi
mov ecx, eax
call fcn.1004d0b0
call fcn.1004f780
movss xmm0, dword [esp + 0x88]
mulss xmm0, dword [0x103b72dc]
call fcn.10038be0
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x2bf4]
push eax
mov eax, dword [esp + 0x90]
mov ecx, str.picker
and eax, 0x7890002
or eax, 0x740080
push eax
call fcn.10056870
or byte [esp + 0x1a], al
add esp, 8
call fcn.10038c60
call fcn.1003a100
mov esi, dword [esp + 0x14]
jmp 0x100560ef
xor esi, esi
mov ecx, dword [ebp + 8]
cmp dword [esp + 0x3c], edi
je 0x1005611b
test cl, cl
js 0x1005611b
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x154c]
call fcn.100398b0
mov ecx, dword [esp + 0x3c]
mov edx, edi
call fcn.1004d0b0
test esi, esi
jne 0x100561ab
cmp byte [esp + 0x13], 0
jne 0x10056140
movups xmm0, xmmword [esp + 0x4c]
cvtdq2ps xmm0, xmm0
divps xmm0, xmmword [0x103b7990]
movups xmmword [esp + 0x2c], xmm0
nop
cmp dword [esp + 0x6c], 0
je 0x1005616e
movss xmm2, dword [esp + 0x34]
lea eax, [esp + 0x34]
movss xmm1, dword [esp + 0x30]
lea edx, [esp + 0x30]
movss xmm0, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push eax
call fcn.1002f340
add esp, 4
cmp byte [esp + 0x12], 0
je 0x100561ab
cmp byte [esp + 0x44], 0
mov eax, dword [esp + 0x18]
movss xmm0, dword [esp + 0x2c]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [eax + 8], xmm0
je 0x100561ab
movss xmm0, dword [esp + 0x38]
movss dword [eax + 0xc], xmm0
mov esi, dword [0x103f3c74]
mov eax, dword [esi + 0x198c]
dec dword [eax + 0x1c0]
add eax, 0x1c0
call fcn.10039720
mov edi, dword [esp + 0x48]
test byte [edi + 0x110], 1
je 0x100562c9
test dword [ebp + 8], 0x200
jne 0x100562c9
cmp byte [esi + 0x1c68], 0
je 0x100562c9
mov ecx, dword [esi + 0x198c]
test byte [ecx + 0x110], 1
je 0x100562c9
mov edx, dword [esi + 0x1990]
test edx, edx
je 0x100562c9
mov eax, dword [ecx + 0x2f0]
cmp eax, dword [edx + 0x2f0]
jne 0x100562c9
test byte [ecx + 0x110], 2
mov eax, 0x114
mov edi, 0x124
cmove edi, eax
mov eax, dword [ecx + 0x10c]
add edi, ecx
test eax, eax
jne 0x1005624b
push edi
call fcn.10030ea0
cmp dword [esi + 0x1c80], eax
je 0x100562c5
movups xmm0, xmmword [edi]
mov ecx, str._COL3F
mov dword [esi + 0x1cc0], eax
mov byte [esi + 0x1c69], 1
movups xmmword [esi + 0x1cb0], xmm0
call fcn.1003db30
mov esi, dword [esp + 0x18]
test eax, eax
je 0x10056291
mov eax, dword [eax]
mov byte [esp + 0x12], 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov ecx, str._COL4F
call fcn.1003db30
mov ecx, eax
test ecx, ecx
je 0x100562b9
mov eax, dword [esp + 0x40]
shl eax, 2
push eax
push dword [ecx]
push esi
call fcn.1008ff70
add esp, 0xc
mov byte [esp + 0x12], 1
mov eax, dword [0x103f3c74]
mov byte [eax + 0x1c69], 0
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100562ed
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x19ac]
test edx, edx
je 0x100562ed
cmp dword [eax + 0x19d4], ecx
jne 0x100562ed
mov dword [edi + 0x10c], edx
mov al, byte [esp + 0x12]
test al, al
je 0x1005630f
mov ecx, dword [0x103f3c74]
mov byte [ecx + 0x19bf], 1
mov ecx, dword [ecx + 0x198c]
or dword [ecx + 0x110], 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret