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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x568d8d
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x5c52f0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
call fcn.004319b3
mov ecx, dword [eax + 4]
call fcn.00431ddf
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc0], 0
test ebx, ebx
js 0x40474d
mov dword [esi + 0xc0], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
inc dword [esi + 0xc4]
lea eax, [esi + 0xc4]
mov dword [esp + 0x38], eax
call edi
xor ecx, ecx
cmp dword [esi + 0xc8], ecx
mov dword [esp + 0x34], eax
sete al
test al, al
sete al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
test al, al
je 0x404ac0
cmp dword [esi + 0xcc], ecx
sete al
test al, al
sete al
test al, al
je 0x404ac0
cmp ebx, 3
ja case.default.0x4047a4
jmp dword [ebx*4 + 0x404ddc]
mov eax, 0x64
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
jmp case.default.0x4047a4
mov dword [esp + 0x24], 0x3e8
mov dword [esp + 0x20], 0x64
jmp case.default.0x4047a4
mov dword [esp + 0x24], 0x2710
mov dword [esp + 0x20], 0x64
jmp case.default.0x4047a4
mov dword [esp + 0x24], 0x186a0
mov dword [esp + 0x20], 0xa
mov ebx, dword [esi + 0xc8]
cmp ebx, ecx
jne 0x404802
push 0x80004003
call fcn.005573a0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x540]
push 1
push ebx
call ecx
test eax, eax
jns 0x40481f
push 0x59f1ec
push ebx
push eax
call fcn.005573c0
mov ebx, dword [esi + 0xc8]
test ebx, ebx
jne 0x404833
push 0x80004003
call fcn.005573a0
mov edx, dword [ebx]
mov eax, dword [edx + 0x74]
push ebx
call eax
test eax, eax
jns 0x40484b
push 0x59f1ec
push ebx
push eax
call fcn.005573c0
mov ebx, dword [esi + 0xcc]
test ebx, ebx
jne 0x40485f
push 0x80004003
call fcn.005573a0
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x28]
push ebx
call edx
test eax, eax
jns 0x404877
push 0x59f19c
push ebx
push eax
call fcn.005573c0
call edi
fld qword [esi + 0xd0]
cmp dword [esp + 0x24], 0
fstp qword [esp + 0x3c]
mov dword [esp + 0x1c], 0
jle 0x404a59
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esp, [esp]
mov esi, dword [esi + 0xcc]
test esi, esi
je 0x4047f8
mov ecx, dword [0x5c6778]
mov edx, dword [0x5c677c]
mov ebx, dword [esi]
lea eax, [esp + 0x30]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [0x5c6780]
mov dword [eax + 8], edx
mov edx, dword [0x5c6784]
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x5c677c]
mov dword [eax + 4], ecx
mov ecx, dword [0x5c6780]
mov dword [eax + 8], ecx
push 0
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x20]
push esi
call edx
test eax, eax
jns 0x404911
push 0x59f19c
push esi
push eax
call fcn.005573c0
cmp dword [esp + 0x20], 0
je 0x404a3c
mov eax, 8
push str.Task
xor ebx, ebx
mov word [esp + 0x78], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x7c], eax
test eax, eax
je 0x404a6d
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x4049f3
jmp 0x404950
call fcn.0053e66e
and eax, 0x80000001
jns 0x404961
dec eax
or eax, 0xfffffffe
inc eax
add ebx, eax
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov ecx, 7
mov word [esp + 0x64], cx
fadd qword [esp + 0x3c]
fst qword [esp + 0x6c]
fadd qword [0x59f208]
mov edx, ecx
mov word [esp + 0x54], dx
fstp qword [esp + 0x5c]
mov eax, 3
mov word [esp + 0x44], ax
mov dword [esp + 0x4c], esi
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xc0], 4
mov eax, dword [ecx + 0xcc]
test eax, eax
je 0x4047f8
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x74]
push edx
push ecx
push eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
lea eax, [esp + 0x70]
call fcn.004050a0
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x54]
push eax
call edi
lea ecx, [esp + 0x64]
push ecx
call edi
inc esi
inc ebx
cmp esi, dword [esp + 0x20]
jl 0x404950
mov ecx, dword [esp + 0x1c]
fld qword [esp + 0x3c]
fadd qword [0x59f208]
mov eax, 0x66666667
imul ecx
fstp qword [esp + 0x3c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
jne 0x404a2d
mov eax, dword [esp + 0x28]
fld qword [eax + 0xd0]
fstp qword [esp + 0x3c]
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xc4], 0
call edi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x24]
jl 0x4048a0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esi + 0xc8]
test ebx, ebx
jne 0x404a77
push 0x80004003
call fcn.005573a0
push 0x8007000e
call fcn.005573a0
mov edx, dword [ebx]
mov eax, dword [edx + 0x78]
push ebx
call eax
test eax, eax
jns 0x404a8f
push 0x59f1ec
push ebx
push eax
call fcn.005573c0
mov ebx, dword [esi + 0xc8]
test ebx, ebx
jne 0x404aa3
push 0x80004003
call fcn.005573a0
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x540]
push 0
push ebx
call edx
test eax, eax
jns 0x404ac0
push 0x59f1ec
push ebx
push eax
call fcn.005573c0
call fcn.0047157e
test eax, eax
je 0x404db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov dword [esp + 0x2c], eax
test eax, eax
je 0x404db0
mov ecx, dword [0x5cd130]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402650
push 0x1e
push str.__Exontrol.ExG2antt__Version:
lea ecx, [esp + 0x24]
mov byte [esp + 0xc8], 6
call fcn.00405710
mov esi, dword [esi + 0xc8]
test esi, esi
jne 0x404b1e
push 0x80004003
call fcn.005573a0
lea ebx, [esp + 0x30]
mov ecx, esi
call fcn.00405360
mov byte [esp + 0xc0], 7
mov eax, dword [eax]
test eax, eax
je 0x404b41
mov edx, dword [eax]
test edx, edx
jne 0x404b47
xor eax, eax
jmp 0x404b5f
xor edx, edx
xor eax, eax
jmp 0x404b5f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b50
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00405710
mov bl, 6
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x30]
test eax, eax
je 0x404bb5
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x404bb5
test esi, esi
je 0x404bb5
mov eax, dword [esi]
test eax, eax
je 0x404b9c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x404bac
push eax
call fcn.00405cf7
add esp, 4
push esi
call fcn.00405cf7
add esp, 4
push 7
push str.__TTE:
lea ecx, [esp + 0x24]
call fcn.00405710
call edi
sub eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
jns 0x404bdb
fadd qword [0x59f200]
sub esp, 8
lea esi, [esp + 0x38]
fstp qword [esp]
call fcn.00403650
add esp, 8
mov byte [esp + 0xc0], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00405710
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404c2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x59ef78
lea ecx, [esp + 0x24]
call fcn.00405710
push 9
push str.__Items:
lea ecx, [esp + 0x24]
call fcn.00405710
fild dword [esp + 0x24]
sub esp, 8
lea esi, [esp + 0x3c]
fstp qword [esp]
call fcn.00403650
add esp, 8
mov byte [esp + 0xc0], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00405710
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
push str.__Bars:
lea ecx, [esp + 0x24]
call fcn.00405710
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
sub esp, 8
fild dword [esp + 0x3c]
lea esi, [esp + 0x3c]
fstp qword [esp]
call fcn.00403650
add esp, 8
mov byte [esp + 0xc0], 0xa
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00405710
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
push str.__Runs:
lea ecx, [esp + 0x24]
call fcn.00405710
mov ecx, dword [esp + 0x38]
fild dword [ecx]
sub esp, 8
lea esi, [esp + 0x40]
fstp qword [esp]
call fcn.00403650
add esp, 8
mov byte [esp + 0xc0], 0xb
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00405710
mov byte [esp + 0xc0], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00424d52
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404db0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1b]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00401b90
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4