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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4886da
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call fcn.004144f0
mov al, byte [eax + 0x820]
test al, al
jne 0x41c0b6
call fcn.00410430
test al, al
je 0x41c0b6
call fcn.004144f0
mov ecx, eax
call fcn.0040df50
mov byte [esp + 0x1a], 0
test al, al
je 0x41c0bb
mov byte [esp + 0x1a], 1
mov dword [esp + 0x24], ebp
call fcn.004480a0
push 0x40
mov ebx, eax
call fcn.00470562
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x78], ebp
cmp edi, ebp
je 0x41c128
push 5
push str.preMG
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
call fcn.0040b580
lea eax, [esp + 0x34]
push eax
push ebp
mov ecx, edi
mov byte [esp + 0x80], 1
mov dword [esp + 0x24], 1
call fcn.00420500
mov edi, eax
mov dword [esp + 0x24], 1
jmp 0x41c12a
xor edi, edi
test byte [esp + 0x1c], 1
mov dword [esp + 0x78], 0xffffffff
je 0x41c152
and dword [esp + 0x1c], 0xfffffffe
cmp dword [esp + 0x4c], 0x10
jb 0x41c152
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0046fa18
add esp, 4
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov dword [esp + 0x2c], edi
call fcn.0044b9f0
mov ecx, ebx
xor edi, edi
call fcn.00446eb0
test eax, eax
jle 0x41c2a2
push edi
mov ecx, ebx
call fcn.00446ec0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.0044e190
cmp dword [eax + 0x14], ebp
setne byte [esp + 0x1b]
cmp dword [esp + 0x4c], 0x10
jb 0x41c1a3
mov edx, dword [esp + 0x38]
push edx
call fcn.0046fa18
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0x41c290
push 0x28
call fcn.00470562
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x78], 3
test ebp, ebp
je 0x41c20d
lea eax, [esp + 0x34]
push eax
push edi
mov ecx, ebx
call fcn.00446ec0
mov ecx, eax
call fcn.0041dc00
mov esi, eax
or dword [esp + 0x1c], 2
push edi
mov ecx, ebx
mov byte [esp + 0x7c], 4
call fcn.00446ec0
push eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov ecx, ebp
call fcn.0041afa0
inc esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
mov ebp, eax
jmp 0x41c20f
xor ebp, ebp
test byte [esp + 0x1c], 2
mov dword [esp + 0x78], 0xffffffff
je 0x41c237
and dword [esp + 0x1c], 0xfffffffd
cmp dword [esp + 0x4c], 0x10
jb 0x41c237
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0046fa18
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x28], ebp
test ecx, ecx
jne 0x41c246
xor eax, eax
jmp 0x41c24e
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [esi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x41c26c
mov eax, dword [esp + 0x20]
mov dword [esi], ebp
add esi, 4
mov dword [eax + 0x10], esi
mov esi, eax
jmp 0x41c290
cmp ecx, esi
jbe 0x41c275
call fcn.004707a2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044b940
mov esi, dword [esp + 0x20]
mov ecx, ebx
inc edi
call fcn.00446eb0
xor ebp, ebp
cmp edi, eax
jl 0x41c173
cmp byte [esp + 0x1a], 0
je 0x41c386
push 0x328
call fcn.00470562
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x78], 6
cmp edi, ebp
je 0x41c311
push 9
push str.installMG
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
call fcn.0040b580
mov edx, dword [esp + 0x24]
or dword [esp + 0x1c], 4
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x80], 7
call fcn.0041e140
inc dword [esp + 0x24]
mov ebp, eax
test byte [esp + 0x1c], 4
mov dword [esp + 0x78], 0xffffffff
je 0x41c339
and dword [esp + 0x1c], 0xfffffffb
cmp dword [esp + 0x4c], 0x10
jb 0x41c339
mov eax, dword [esp + 0x38]
push eax
call fcn.0046fa18
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x28], ebp
test ecx, ecx
jne 0x41c348
xor eax, eax
jmp 0x41c350
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x41c368
mov dword [edi], ebp
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x41c386
cmp ecx, edi
jbe 0x41c371
call fcn.004707a2
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push edi
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0044b940
mov ecx, ebx
xor ebp, ebp
call fcn.00446eb0
test eax, eax
jle 0x41c4c5
push ebp
mov ecx, ebx
call fcn.00446ec0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.0044e190
cmp dword [eax + 0x14], 0
setne byte [esp + 0x1b]
cmp dword [esp + 0x4c], 0x10
jb 0x41c3c8
mov edx, dword [esp + 0x38]
push edx
call fcn.0046fa18
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x41c4b5
push 0x28
call fcn.00470562
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x78], 9
test edi, edi
je 0x41c432
lea eax, [esp + 0x34]
push eax
push ebp
mov ecx, ebx
call fcn.00446ec0
mov ecx, eax
call fcn.0041dc00
mov esi, eax
or dword [esp + 0x1c], 8
push ebp
mov ecx, ebx
mov byte [esp + 0x7c], 0xa
call fcn.00446ec0
push eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.0041afa0
inc esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
mov edi, eax
jmp 0x41c434
xor edi, edi
test byte [esp + 0x1c], 8
mov dword [esp + 0x78], 0xffffffff
je 0x41c45c
and dword [esp + 0x1c], 0xfffffff7
cmp dword [esp + 0x4c], 0x10
jb 0x41c45c
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0046fa18
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x28], edi
test ecx, ecx
jne 0x41c46b
xor eax, eax
jmp 0x41c473
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [esi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x41c491
mov eax, dword [esp + 0x20]
mov dword [esi], edi
add esi, 4
mov dword [eax + 0x10], esi
mov esi, eax
jmp 0x41c4b5
cmp ecx, esi
jbe 0x41c49a
call fcn.004707a2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044b940
mov esi, dword [esp + 0x20]
mov ecx, ebx
inc ebp
call fcn.00446eb0
cmp ebp, eax
jl 0x41c397
push 0x24
call fcn.00470562
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x78], 0xc
test edi, edi
je 0x41c526
push 8
push str.cancelMG
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.0040b580
mov edx, dword [esp + 0x24]
or dword [esp + 0x1c], 0x10
lea ecx, [esp + 0x50]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x80], 0xd
call fcn.0041b660
jmp 0x41c528
xor eax, eax
mov edx, dword [esi + 0xc]
mov dword [esp + 0x78], 0xe
mov dword [esp + 0x28], eax
test edx, edx
jne 0x41c53f
xor ecx, ecx
jmp 0x41c547
mov ecx, dword [esi + 0x14]
sub ecx, edx
sar ecx, 2
mov edi, dword [esi + 0x10]
mov ebx, edi
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x41c55f
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x41c57d
cmp edx, edi
jbe 0x41c568
call fcn.004707a2
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push edi
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0044b940
test byte [esp + 0x1c], 0x10
je 0x41c598
cmp dword [esp + 0x68], 0x10
jb 0x41c598
mov eax, dword [esp + 0x54]
push eax
call fcn.0046fa18
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret