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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x493db8]
push edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x3dd4]
cmp eax, dword [esi + 0x3dd0]
je 0x41d3bf
call fcn.0041d040
mov eax, dword [esi + 0x3dd8]
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x3dd0]
mov dword [ebp - 8], eax
mov dword [esi + 0x3dd8], eax
mov dword [esi + 0xa0], 0
cmp dword [esi + 0x5238], edi
jle 0x41d414
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x5240]
add eax, ebx
cmp dword [eax + 4], 4
jne 0x41d408
push eax
mov eax, dword [eax + 0xc]
push esi
call eax
add esp, 8
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x5238]
jl 0x41d3f0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [esi + 0x3fdc], ecx
je 0x41d4d7
nop word [eax + eax]
mov eax, dword [esi + 0x3fe4]
mov ebx, 2
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
lea edi, [eax + 0x64]
push 0
mov ecx, edi
call fcn.0042a3d0
add edi, 0xc
sub ebx, 1
jne 0x41d444
mov edi, dword [ebp - 0xc]
cmp dword [edi + 0x30], ebx
je 0x41d4c4
push str.Background
xor edx, edx
mov ecx, edi
call fcn.00419760
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x41d4c4
cmp ecx, 1
jne 0x41d489
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], ebx
jne 0x41d489
cmp dword [eax + 0x20], ebx
je 0x41d4c4
mov ecx, dword [edi + 0x68]
lea ebx, [edi + 0x64]
mov edi, dword [ebx]
cmp edi, ecx
jne 0x41d4b7
inc edi
test ecx, ecx
je 0x41d4a5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x41d4aa
mov eax, 8
cmp eax, edi
mov ecx, ebx
cmovg edi, eax
push edi
call fcn.0042a330
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + ecx*4], edx
inc dword [ebx]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [esi + 0x3fdc]
jne 0x41d430
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x41d4e4
call fcn.0041cc40
mov eax, dword [esi + 0x4138]
test eax, eax
je 0x41d508
test dword [eax + 8], 0x2000
jne 0x41d508
mov ebx, dword [eax + 0x2e8]
mov eax, dword [esi + 0x4140]
mov dword [ebp - 0x10], ebx
jmp 0x41d51b
xor ebx, ebx
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x41d519
mov eax, dword [esi + 0x4140]
jmp 0x41d51b
xor eax, eax
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x3de8], edi
je 0x41d573
nop dword [eax + eax]
mov eax, dword [esi + 0x3df0]
mov ecx, dword [eax + edi*4]
cmp byte [ecx + 0x8e], 0
je 0x41d56a
cmp byte [ecx + 0x95], 0
jne 0x41d56a
mov edx, dword [ecx + 8]
test edx, 0x1000000
jne 0x41d56a
cmp ecx, ebx
je 0x41d56a
cmp ecx, dword [ebp - 0x14]
je 0x41d56a
shr edx, 0x19
and edx, 1
call fcn.0041c870
inc edi
cmp edi, dword [esi + 0x3de8]
jne 0x41d530
xor edi, edi
mov ecx, dword [ebp + edi*4 - 0x10]
test ecx, ecx
je 0x41d59d
cmp byte [ecx + 0x8e], 0
je 0x41d59d
cmp byte [ecx + 0x95], 0
jne 0x41d59d
mov edx, dword [ecx + 8]
shr edx, 0x19
and edx, 1
call fcn.0041c870
inc edi
cmp edi, 2
jl 0x41d575
cmp byte [esi + 0x58], 0
je 0x41d5db
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
je 0x41d5db
mov ecx, dword [esi + 0x4154]
cmp ecx, 0xffffffff
je 0x41d5db
push dword [esi + 0xd54]
movss xmm0, dword [esi + 0x3868]
push dword [esi + 0xd50]
sub esp, 8
call fcn.00418790
add esp, 0x10
xor ecx, ecx
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [ebp - 0x18], ecx
cmp dword [esi + 0x3fdc], ecx
jle 0x41d789
mov eax, dword [esi + 0x3fe4]
mov ebx, dword [eax + ecx*4]
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x70]
add eax, ecx
mov dword [ebp - 0xc], ecx
push eax
lea ecx, [ebx + 0x64]
call fcn.0042a3d0
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x41d647
mov ecx, dword [ebp - 0xc]
shl eax, 2
push eax
mov eax, dword [ebx + 0x6c]
push dword [ebx + 0x78]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebx + 0x70]
push 0
call fcn.0042a3d0
cmp dword [ebx + 0x34], 0
je 0x41d6c0
push str.Foreground
mov edx, 1
mov ecx, ebx
call fcn.00419760
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x41d6c0
cmp ecx, 1
jne 0x41d67e
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x41d67e
cmp dword [eax + 0x20], 0
je 0x41d6c0
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
cmp edx, ecx
jne 0x41d6b1
inc edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x41d69e
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xc]
sar eax, 1
add eax, ecx
jmp 0x41d6a3
mov eax, 8
cmp eax, edx
lea ecx, [ebx + 0x64]
cmovg edx, eax
push edx
call fcn.0042a330
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 8]
mov dword [eax + ecx*4], edx
inc dword [ebx + 0x64]
mov edx, dword [0x493db8]
mov byte [ebx + 0x38], 1
cmp dword [ebx + 0x64], 0
jle 0x41d6d5
mov eax, dword [ebx + 0x6c]
jmp 0x41d6d7
xor eax, eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], ecx
mov eax, dword [edx + 0x50]
mov ecx, dword [edx + 0x54]
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x60], ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x64], eax
jle 0x41d767
nop
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
test eax, eax
je 0x41d743
mov esi, dword [edx + 8]
lea ecx, [eax + eax*4]
cmp dword [esi + ecx*8 - 0xc], 0
jne 0x41d743
cmp dword [esi + ecx*8 - 8], 0
jne 0x41d743
dec eax
mov dword [edx], eax
mov eax, dword [ebx + 0x44]
add eax, dword [edx + 0x18]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x44], eax
inc ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0xc]
add dword [ebx + 0x40], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 0x64]
jl 0x41d720
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
add dword [esi + 0x98], eax
inc ecx
mov eax, dword [ebx + 0x40]
add dword [esi + 0x9c], eax
mov dword [ebp - 0x18], ecx
cmp ecx, dword [esi + 0x3fdc]
jl 0x41d600
xor edi, edi
cmp dword [esi + 0x5238], edi
jle 0x41d7c4
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x5240]
add eax, ebx
cmp dword [eax + 4], 5
jne 0x41d7b8
push eax
mov eax, dword [eax + 0xc]
push esi
call eax
add esp, 8
inc edi
add ebx, 0x14
cmp edi, dword [esi + 0x5238]
jl 0x41d7a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448493
mov esp, ebp
pop ebp
ret