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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x32
ja 0x4de43c
push edx
sub eax, 0xcfd15b64
popal
hlt
mov ebx, dword [ebp + 0x14]
xor edi, edi
test ebx, ebx
je 0x4de447
mov dword [ebx], edi
cmp dword [ebp + 0x10], edi
jbe 0x4de72b
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 0x30]
jl 0x4de5ab
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], edi
call fcn.0040eb91
mov eax, dword [esi + 8]
inc eax
push edi
push eax
lea ecx, [esp + 0x80]
call fcn.004d0221
pop ecx
pop ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040e479
jmp 0x4de4c5
push 0x30
lea ecx, [esp + 0x68]
call fcn.0041187d
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.00410f71
pop ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ebec
push dword [esp + 0x6c]
call fcn.00418a9a
pop ecx
push dword [esp + 0x60]
call fcn.00418a9a
pop ecx
cmp dword [esp + 0x1c], 3
lea eax, [esp + 0x18]
push eax
jl 0x4de490
lea edx, [esi + 0x50]
lea ecx, [esp + 0x30]
call fcn.00410f71
pop ecx
push 0x18
call fcn.0041beb3
mov edi, eax
pop ecx
test edi, edi
je 0x4de4fc
and dword [edi + 4], 0
mov dword [edi], vtable.COutFileStream.0
or dword [edi + 8], 0xffffffff
jmp 0x4de4fe
xor edi, edi
mov dword [esp + 0x38], edi
test edi, edi
je 0x4de50c
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4de51a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
push ecx
push 1
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
push eax
lea ecx, [edi + 8]
mov dword [esp + 0x4c], edi
call fcn.0051002b
test al, al
je 0x4de5fc
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x2c]
push eax
call fcn.0040eadb
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
call fcn.0040ebec
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x28]
call fcn.004119f0
push dword [esp + 0x2c]
call fcn.00418a9a
pop ecx
push dword [esp + 0x18]
call fcn.00418a9a
pop ecx
push dword [esp + 0x40]
call fcn.00418a9a
pop ecx
mov ecx, dword [esp + 0x3c]
push 0
pop edi
test ecx, ecx
je 0x4de453
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x4de5f5
mov eax, dword [esi + 0x34]
mov edx, ecx
mov edi, dword [eax + ecx*4]
mov eax, dword [esi + 0x44]
cmp edx, eax
jl 0x4de5bd
lea edx, [eax - 1]
mov eax, dword [esi + 0x48]
mov ebx, dword [eax + edx*8]
mov dword [esp + 0xc], ebx
mov ebx, dword [eax + edx*8 + 4]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], ebx
cmp edx, ebx
jb 0x4de62f
ja 0x4de5e1
cmp eax, dword [esp + 0xc]
jb 0x4de62f
sub eax, dword [esp + 0xc]
sbb edx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
lea eax, [ecx + 1]
mov dword [esi + 0x14], edx
mov dword [esi + 8], eax
xor edi, edi
jmp 0x4de453
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x2c]
mov esi, eax
call fcn.00418a9a
pop ecx
push dword [esp + 0x18]
call fcn.00418a9a
pop ecx
push dword [esp + 0x40]
call fcn.00418a9a
mov eax, dword [edi]
pop ecx
push edi
call dword [eax + 8]
mov eax, esi
jmp 0x4de72d
cmp eax, dword [edi + 0x18]
jne 0x4de639
cmp edx, dword [edi + 0x1c]
je 0x4de65e
mov eax, dword [edi + 4]
push 0
mov ecx, dword [eax]
push 0
push edx
push dword [esi + 0x10]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4de72d
mov eax, dword [esi + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0xc]
sub eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [edi + 0x1c]
xor ebx, ebx
cmp ebx, ecx
ja 0x4de681
mov edx, dword [ebp + 0x10]
jb 0x4de67b
cmp edx, eax
jae 0x4de681
mov dword [esp + 0x1c], ebx
jmp 0x4de68a
mov edx, eax
mov dword [ebp + 0x10], edx
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 4]
lea ebx, [esp + 0x10]
mov ecx, dword [eax]
push ebx
push edx
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
mov ebx, dword [ebp + 0x14]
test eax, eax
jne 0x4de72d
mov eax, dword [esp + 0x10]
add dword [edi + 0x18], eax
push 0
pop ecx
adc dword [edi + 0x1c], ecx
mov eax, dword [esp + 0x10]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], ecx
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], ecx
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
cmp edx, dword [esi + 0x24]
jb 0x4de6dc
ja 0x4de6d6
cmp ecx, dword [esi + 0x20]
jbe 0x4de6dc
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cmp edx, dword [edi + 0x24]
jb 0x4de6f8
ja 0x4de6ee
cmp ecx, dword [edi + 0x20]
jbe 0x4de6f8
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], edx
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x4de6fe
add dword [ebx], eax
mov ecx, dword [esp + 0xc]
cmp dword [edi + 0x18], ecx
jne 0x4de71b
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x1c], ecx
jne 0x4de71b
inc dword [esi + 8]
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
test eax, eax
jne 0x4de72b
cmp dword [ebp + 0x10], eax
je 0x4de72b
mov eax, 0x80004005
jmp 0x4de72d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10