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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x1030e040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x10317358]
push esi
push edi
mov dword [esp + 0x28], ebx
mov eax, dword [ebx + 0x3eb4]
cmp eax, dword [ebx + 0x3eb0]
je 0x10054504
call fcn.10053eb0
mov eax, dword [ebx + 0x3ebc]
mov edx, 4
mov dword [esp + 0x18], eax
mov ecx, ebx
mov eax, dword [ebx + 0x3eb0]
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x3ebc], eax
mov dword [ebx + 0xac], 0
call fcn.1004ff70
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x48d4], ecx
je 0x1005470d
nop word [eax + eax]
mov eax, dword [ebx + 0x48dc]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10317358]
mov dword [esp + 0x20], eax
lea edi, [esi + 0x80]
mov dword [esi + 0x30], edi
lea ecx, [edi + 0x10]
lea eax, [esi + 0xc0]
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x100545a7
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x14]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.10048870
lea ecx, [edi + 0x10]
mov dword [ecx], 0
mov eax, dword [esi + 0xbc]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x100545dc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10048870
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov edx, dword [esi + 4]
shr edx, 0xc
mov byte [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
and dl, 1
je 0x10054623
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jmp 0x10054631
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
test dl, dl
lea eax, [esp + 0x34]
lea ecx, [esp + 0x2c]
cmovne ecx, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], esi
cmp dword [esi + 0x78], 0
je 0x100546f8
push 0x102dac3c
xor edx, edx
mov ecx, esi
call fcn.10051220
mov edi, dword [esi + 0xb8]
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov eax, dword [edx]
test eax, eax
je 0x100546f8
cmp eax, 1
jne 0x1005469d
mov eax, dword [edx + 8]
cmp dword [eax + 0x1c], 0
jne 0x1005469d
cmp dword [eax + 0x20], 0
je 0x100546f8
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x100546d6
lea edx, [eax + 1]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x100546c0
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, ecx
jmp 0x100546c5
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.10048870
mov edx, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], edx
inc dword [edi]
inc dword [esi + 0x84]
mov eax, dword [edx + 0x18]
add dword [esi + 0x8c], eax
mov eax, dword [edx + 0xc]
add dword [esi + 0x88], eax
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebx + 0x48d4]
jne 0x10054550
mov eax, dword [ebx + 0x4a94]
test eax, eax
je 0x10054732
test dword [eax + 0xc], 0x2000
jne 0x10054732
mov edi, dword [eax + 0x348]
mov eax, dword [ebx + 0x4a9c]
mov dword [esp + 0x20], edi
jmp 0x10054746
xor edi, edi
mov dword [esp + 0x20], edi
test eax, eax
je 0x10054744
mov eax, dword [ebx + 0x4a9c]
jmp 0x10054746
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
cmp dword [ebx + 0x3eec], esi
je 0x100547a4
nop dword [eax + eax]
mov eax, dword [ebx + 0x3ef4]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xdf], 0
je 0x1005479b
cmp byte [ecx + 0xe6], 0
jne 0x1005479b
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x1005479b
cmp ecx, edi
je 0x1005479b
cmp ecx, dword [esp + 0x10]
je 0x1005479b
shr edx, 0x19
and edx, 1
call fcn.100532a0
inc esi
cmp esi, dword [ebx + 0x3eec]
jne 0x10054760
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x20]
test ecx, ecx
je 0x100547ce
cmp byte [ecx + 0xdf], 0
je 0x100547ce
cmp byte [ecx + 0xe6], 0
jne 0x100547ce
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.100532a0
inc esi
cmp esi, 2
jl 0x100547a6
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x100547e9
call fcn.10053970
mov eax, dword [esp + 0x18]
cmp byte [ebx + 0x4c], 0
je 0x1005481d
cmp eax, esi
je 0x1005481d
mov ecx, dword [ebx + 0x4c00]
cmp ecx, 0xffffffff
je 0x1005481d
push dword [ebx + 0xdc4]
movss xmm0, dword [ebx + 0x38fc]
push dword [ebx + 0xdc0]
sub esp, 8
call fcn.1004ec90
add esp, 0x10
xor ecx, ecx
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xa4], 0
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x48d4], ecx
jle 0x10054a0a
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebx + 0x48dc]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0xb8]
mov eax, dword [edi + 0xbc]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
mov esi, dword [eax]
mov ebx, dword [ecx + 4]
add esi, edx
mov dword [esp + 0x1c], edx
cmp esi, ebx
jle 0x100548a9
test ebx, ebx
je 0x1005488b
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, ebx
jmp 0x10054890
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.10048870
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ecx], esi
mov esi, dword [edi + 0xbc]
mov eax, dword [esi]
test eax, eax
je 0x100548f8
shl eax, 2
push eax
mov eax, dword [edi + 0xb8]
push dword [esi + 8]
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
jns 0x100548f2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10048870
mov dword [esi], 0
cmp dword [edi + 0x7c], 0
je 0x1005498d
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.10051220
mov esi, dword [edi + 0xb8]
mov ebx, eax
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x1005498d
cmp eax, 1
jne 0x10054938
mov eax, dword [ebx + 8]
cmp dword [eax + 0x1c], 0
jne 0x10054938
cmp dword [eax + 0x20], 0
je 0x1005498d
mov edx, dword [esi]
mov ecx, dword [esi + 4]
cmp edx, ecx
jne 0x1005496b
inc edx
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x10054959
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x1005495e
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.10048870
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebx
inc dword [esi]
inc dword [edi + 0x84]
mov eax, dword [ebx + 0x18]
add dword [edi + 0x8c], eax
mov eax, dword [ebx + 0xc]
add dword [edi + 0x88], eax
xor ebx, ebx
cmp dword [edi + 0x90], ebx
jle 0x100549d9
nop word [eax + eax]
mov eax, dword [edi + 0x98]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x100549d0
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [edx + eax - 0xc], 0
jne 0x100549d0
cmp dword [edx + eax - 8], 0
jne 0x100549d0
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x100549b5
inc ebx
cmp ebx, dword [edi + 0x90]
jl 0x100549a0
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + 0x8c]
mov ecx, dword [esp + 0x10]
inc ecx
add dword [ebx + 0xa4], eax
mov eax, dword [edi + 0x88]
add dword [ebx + 0xa8], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebx + 0x48d4]
jl 0x10054850
xor esi, esi
cmp dword [ebx + 0x5c18], esi
jle 0x10054a44
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x5c20]
add eax, edi
cmp dword [eax + 4], 5
jne 0x10054a38
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x5c18]
jl 0x10054a20
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1013cfec
mov esp, ebp
pop ebp
ret