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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4903b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10f4], 0
je 0x40cbd3
or eax, 0xffffffff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x14], 0
cmp eax, 4
ja case.0x40cbe4.1
jmp dword [eax*4 + 0x40d144]
mov ecx, dword [ebx + 0x60]
lea eax, [ebx + 0x60]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40cbf4
sub ecx, esi
sar ecx, 1
cmp ecx, dword [eax + 4]
jb 0x40cc1f
push 0x4ac624
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.0047854f
mov esi, dword [ebp + 0x10]
test ecx, ecx
jne 0x40cc33
mov edi, dword [esi + 4]
push 0xfde9
call fcn.0040a2c0
cmp dword [ebx + 0x34], 0
je case.0x40cbe4.1
lea eax, [esp + 0x40]
call fcn.00409e20
mov dword [esp + 0x78], 0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
push 0xfde9
lea eax, [esp + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.0040a2c0
mov cx, word [esi + 0x20]
mov edx, dword [ebx + 0x1104]
mov dword [esp + 0x38], eax
mov ax, word [esi + 0x1e]
mov word [esp + 0x3c], ax
push edx
lea eax, [esp + 0x34]
mov word [esp + 0x42], cx
mov ecx, dword [ebx + 0x34]
push eax
call ecx
mov edx, dword [esp + 0x48]
push edx
call fcn.00473f95
add esp, 0xc
jmp case.0x40cbe4.1
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 4]
lea eax, [ebx + 0x60]
push 0xfde9
call fcn.0040a2c0
mov eax, dword [esi + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x40cce1
mov dword [ebx + 0x10e4], eax
mov dword [ebx + 0x10e8], ecx
mov dword [ebx + 0x10ec], ecx
mov dword [esp + 0x14], 0xffffffff
jmp case.0x40cbe4.1
cmp dword [ebx + 0x38], ecx
je case.0x40cbe4.1
lea eax, [esp + 0x40]
call fcn.00409e20
mov dword [esp + 0x78], 1
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x30], eax
push 0xfde9
lea eax, [esp + 0x44]
mov dword [esp + 0x38], ecx
call fcn.0040a2c0
mov dx, word [esi + 0x1e]
mov ecx, dword [ebx + 0x1104]
mov dword [esp + 0x38], eax
mov ax, word [esi + 0x20]
push ecx
mov ecx, dword [ebx + 0x38]
mov word [esp + 0x40], dx
mov edx, dword [esi + 0x24]
mov word [esp + 0x42], ax
push edx
lea eax, [esp + 0x38]
push eax
call ecx
mov edx, dword [esp + 0x4c]
add esp, 0xc
push edx
jmp 0x40d123
lea eax, [esp + 0x30]
call fcn.00409e20
lea eax, [esp + 0x28]
mov dword [esp + 0x78], 2
call fcn.00409e20
lea eax, [esp + 0x20]
mov byte [esp + 0x78], 3
call fcn.00409e20
lea eax, [esp + 0x18]
mov byte [esp + 0x78], 4
call fcn.00409e20
lea eax, [esp + 0x40]
mov byte [esp + 0x78], 5
call fcn.00409e20
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x78], 6
test byte [ecx + 0x1c], 0x80
mov eax, 0xfde9
jne 0x40cdaf
mov eax, dword [ebx + 0x1100]
mov edi, dword [ecx + 4]
push eax
lea eax, [esp + 0x24]
call fcn.0040a2c0
lea esi, [esp + 0x20]
call fcn.0040a160
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edx, esi
push edx
call fcn.0040a590
add esp, 0xc
lea edx, [ebx + 0x58]
lea eax, [esp + 0x18]
call fcn.00409fa0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
call fcn.0040a0a0
lea edx, [esp + 0x18]
lea eax, [esp + 0x40]
call fcn.00409fa0
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x44]
call fcn.0040a0a0
cmp dword [ebx + 0x28], 0
mov esi, dword [esp + 0x40]
mov edi, dword [ebp + 0x10]
je 0x40ceba
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
mov dword [esp + 0x50], ecx
mov cx, word [edi + 0x1c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
movzx eax, word [edi + 0x1a]
lea edx, [esp + 0x60]
mov word [esp + 0x68], cx
movzx ecx, word [edi + 0x18]
push edx
push eax
push ecx
mov dword [esp + 0x64], esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov edx, dword [ebx + 0x1104]
mov ecx, dword [ebx + 0x28]
push edx
lea eax, [esp + 0x4c]
push eax
call ecx
add esp, 8
test eax, eax
jne 0x40ceba
push esi
call fcn.00473f95
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.00473f95
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.00473f95
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
call fcn.00473f95
mov edx, dword [esp + 0x34]
add esp, 4
push edx
jmp 0x40d123
cmp dword [ebx + 0x10f8], 0
je 0x40ceff
mov edi, dword [edi]
lea esi, [ebx + 0x10c0]
call fcn.0040a330
mov edi, 0xff000000
mov esi, edi
lea edx, [ebx + 0x48]
call fcn.0040a380
test eax, eax
je 0x40cef2
inc edi
mov esi, edi
lea edx, [ebx + 0x48]
call fcn.0040a380
test eax, eax
jne 0x40cee3
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], edi
jmp 0x40d016
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a3f0
add esp, 4
test eax, eax
je 0x40cf6c
mov dword [ebx + 0x10e8], eax
mov dword [ebx + 0x10ec], 0
mov dword [esp + 0x14], 0xffffffff
push esi
mov dword [ebx + 0x10e4], 8
call fcn.00473f95
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.00473f95
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00473f95
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.00473f95
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
jmp 0x40d123
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push 0x180
push 0x8321
push esi
mov ecx, ebx
call eax
xor ecx, ecx
mov dword [esp + 0x14], eax
cmp eax, ecx
jg 0x40cf98
mov dword [ebx + 0x10e8], ecx
mov dword [ebx + 0x10ec], ecx
jmp 0x40cf28
mov edx, dword [ebx + 0xc]
xor eax, eax
mov word [edx], ax
mov edx, dword [ebx + 0x14]
mov word [edx], ax
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], ecx
mov edx, dword [edi]
mov dword [ebx + 0x1c], edx
lea edx, [esp + 0x40]
lea eax, [ebx + 0x14]
call fcn.00409fa0
lea eax, [ebx + 0xc]
lea edx, [esp + 0x20]
call fcn.00409fa0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x40d016
mov ecx, dword [ebx + 0x14]
fldz
mov edx, dword [ebx + 0xc]
fstp dword [esp + 0x58]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x1104]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x4c]
push edx
call eax
add esp, 8
push esi
call fcn.00473f95
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.00473f95
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call fcn.00473f95
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.00473f95
mov eax, dword [esp + 0x34]
add esp, 4
push eax
jmp 0x40d123
lea eax, [esp + 0x40]
call fcn.00409e20
lea eax, [esp + 0x30]
mov dword [esp + 0x78], 7
call fcn.00409e20
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x78], 8
test byte [ecx + 0x1c], 0x80
mov eax, 0xfde9
jne 0x40d083
mov eax, dword [ebx + 0x1100]
mov edi, dword [ecx + 4]
push eax
lea eax, [esp + 0x34]
call fcn.0040a2c0
lea esi, [esp + 0x30]
call fcn.0040a160
lea edx, [ebx + 0x58]
lea eax, [esp + 0x40]
call fcn.00409fa0
mov ecx, esi
push ecx
lea eax, [esp + 0x44]
call fcn.0040a0a0
cmp dword [ebx + 0x10f8], 0
jne 0x40d0e1
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x14]
mov esi, ebx
call fcn.0040cad0
movzx edx, word [edi + 0x1a]
movzx eax, word [edi + 0x18]
mov esi, dword [esp + 0x40]
push edx
push eax
mov ax, word [edi + 0x1c]
push esi
call fcn.0040d220
jmp 0x40d0e5
mov esi, dword [esp + 0x40]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x40d10d
cmp dword [ebx + 0x10f8], 0
je 0x40d0fd
lea eax, [ebx + 0x10c0]
jmp 0x40d0ff
xor eax, eax
mov edx, dword [ebx + 0x1104]
push edx
push eax
push esi
call ecx
add esp, 0xc
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x18], 1
call fcn.00473f95
add esp, 4
push esi
call fcn.00473f95
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc