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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov edi, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov ebx, 0xfffffff6
cmp dword [esi + 0xc], edi
jg 0x40809a
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [edi - 1]
mov dword [esp + 0x48], 0x445b38
mov ebx, 0x445b38
cmp eax, 4
ja 0x4079d8
mov eax, dword [edi*4 + 0x445bf4]
mov dword [esp + 0x48], eax
mov ebx, dword [edi*4 + 0x445c08]
movzx eax, word [esp + 0x86]
mov dword [esp], eax
movzx eax, word [esp + 0x78]
mov dword [esp + 0x44], eax
movzx eax, word [esp + 0x7a]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0x7e]
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x80]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x82]
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x84]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x274]
mov dword [esp + 0x68], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
cmp dword [esi + 0x10], 0
mov dword [esp + 0x24], eax
je 0x407fb6
push ebx
push 0x445b66
push eax
push edi
call fcn.004080b0
add esp, 0x10
mov ebx, eax
mov edx, dword [esp]
movzx ecx, byte [esi + 0x14]
test cl, cl
je 0x407fc7
imul eax, edx, 0x3e8
mov dword [esp + 0x28], eax
mov edx, 0x1999999a
mul edx
mov esi, edx
add esi, edx
imul ebp, dword [esp], 0x64
mov eax, ebp
mov edx, 0x1999999a
mul edx
lea eax, [esi + esi*4]
sub dword [esp + 0x28], eax
add edx, edx
lea eax, [edx + edx*4]
sub ebp, eax
mov dword [esp + 0x64], ebp
imul edx, dword [esp], 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
mov esi, edx
lea eax, [eax + eax*4]
mov edx, dword [esp]
sub edx, eax
mov dword [esp + 0x2c], edx
imul eax, esi, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp]
shr eax, 2
imul edx, eax, 0x147b
shr edx, 0x11
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0x1c], edx
mov esi, dword [esp + 0x30]
imul edx, esi, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x60], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x34]
imul edx, esi, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x5c], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x38]
imul edx, esi, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x58], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x3c]
imul edx, esi, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x54], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0x40]
imul edx, esi, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x50], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
imul ebp, edx, 0xcccd
shr ebp, 0x13
lea eax, [ebp*2]
lea eax, [eax + eax*4]
mov esi, edx
sub esi, eax
mov dword [esp + 0x4c], esi
imul eax, ebp, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub ebp, eax
mov eax, edx
mov esi, edx
shr eax, 2
imul edx, eax, 0x147b
shr edx, 0x11
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov eax, esi
shr eax, 3
imul eax, eax, 0x20c5
shr eax, 0x14
imul esi, eax, 0x199a
shr esi, 0xf
and esi, 0xfffffffe
lea esi, [esi + esi*4]
sub eax, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
or al, 0x30
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
or al, 0x30
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
or al, 0x30
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
or al, 0x30
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
or al, 0x30
mov esi, eax
mov eax, dword [esp + 0x60]
or al, 0x30
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
or al, 0x30
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
or al, 0x30
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
or al, 0x30
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
or al, 0x30
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
or al, 0x30
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
or al, 0x30
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc]
or al, 0x30
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
or al, 0x30
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
or al, 0x30
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
or al, 0x30
mov dword [esp + 0x4c], eax
mov eax, ebp
or al, 0x30
mov dword [esp + 0x70], eax
or dl, 0x30
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 4]
or al, 0x30
mov dword [esp + 4], eax
cmp word [esp], 0x64
mov eax, esi
movzx edx, al
mov ebp, 0x30
cmovb edx, ebp
mov dword [esp + 0x1c], edx
cmp word [esp + 0x30], 0xa
movzx edx, byte [esp + 0x18]
cmovb edx, ebp
mov dword [esp + 0x18], edx
cmp word [esp + 0x34], 0xa
movzx edx, byte [esp + 0x14]
cmovb edx, ebp
mov dword [esp + 0x14], edx
cmp word [esp + 0x38], 0xa
movzx edx, byte [esp + 0x10]
cmovb edx, ebp
mov dword [esp + 0x10], edx
cmp word [esp + 0x3c], 0xa
movzx edx, byte [esp + 0xc]
cmovb edx, ebp
mov dword [esp + 0xc], edx
cmp word [esp + 0x40], 0xa
movzx esi, byte [esp + 8]
mov edx, dword [esp]
cmovb esi, ebp
mov dword [esp + 8], esi
cmp dword [esp + 0x44], 0x3e8
movzx eax, byte [esp + 4]
cmovb eax, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
lea ebp, [eax + 0x14]
mov esi, dword [esp + 0x24]
jmp 0x407da6
mov byte [edi + ebx], 0x25
nop dword [eax]
inc ebx
movzx ecx, byte [ebp + 1]
inc ebp
cmp cl, 0x25
je 0x407dc0
movzx eax, cl
test eax, eax
je 0x40802a
mov byte [edi + ebx], cl
jmp 0x407da0
movsx eax, byte [ebp + 1]
inc ebp
add eax, 0xffffffdb
cmp eax, 0x55
ja case.0x407dcd.38
jmp dword [eax*4 + 0x4459b0]
cmp dword [esp + 0x38], 0
je 0x407ecd
mov eax, dword [esp + 0x58]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x10]
jmp 0x407ecb
mov ecx, dword [esp + 0x48]
movzx eax, byte [ecx]
mov byte [edi + ebx], al
movzx eax, byte [ecx + 1]
mov byte [edi + ebx + 1], al
movzx eax, byte [ecx + 2]
mov byte [edi + ebx + 2], al
movzx eax, byte [ecx + 3]
mov byte [edi + ebx + 3], al
movzx eax, byte [ecx + 4]
mov byte [edi + ebx + 4], al
add ebx, 5
jmp case.0x407dcd.38
cmp dword [esp + 0x34], 0
je 0x407ecd
mov eax, dword [esp + 0x5c]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x14]
jmp 0x407ecb
cmp dword [esp + 0x30], 0
je 0x407ecd
mov eax, dword [esp + 0x60]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x18]
jmp 0x407ecb
test edx, edx
je 0x407f4b
mov eax, dword [esp + 0x28]
mov byte [edi + ebx + 5], al
mov eax, dword [esp + 0x64]
mov byte [edi + ebx + 4], al
mov byte [edi + ebx + 3], 0x30
mov eax, dword [esp + 0x2c]
mov byte [edi + ebx + 2], al
cmp dx, 9
jbe 0x407f53
mov eax, dword [esp + 0x20]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x1c]
jmp 0x407f5a
cmp dword [esp + 0x3c], 0
je 0x407ecd
mov eax, dword [esp + 0x54]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0xc]
jmp 0x407ecb
mov eax, dword [esp + 0x48]
movzx eax, byte [eax]
mov byte [edi + ebx], al
jmp 0x407da0
cmp dword [esp + 0x40], 0
je 0x407ecd
mov eax, dword [esp + 0x50]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 8]
jmp 0x407ed4
mov byte [edi + ebx + 1], 0x30
mov al, 0x30
mov byte [edi + ebx], al
add ebx, 2
jmp case.0x407dcd.38
lea edx, [esp + 0xa8]
mov dword [esp + 0x74], edx
lea eax, [edi + ebx]
mov ecx, esi
sub ecx, ebx
push edx
push dword [esp + 0xa8]
push ecx
push eax
call fcn.0040eb50
mov edx, dword [esp + 0x10]
add esp, 0x10
add ebx, eax
jmp case.0x407dcd.38
mov eax, dword [esp + 0x44]
test eax, eax
je 0x407f65
mov ecx, dword [esp + 0x4c]
mov byte [edi + ebx + 3], cl
cmp ax, 9
ja 0x407f88
mov byte [edi + ebx + 2], 0x30
jmp 0x407f96
test edx, edx
je 0x407f71
mov eax, dword [esp + 0x2c]
mov byte [edi + ebx + 2], al
cmp dx, 9
jbe 0x407f76
mov eax, dword [esp + 0x20]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x1c]
jmp 0x407f7d
mov dword [edi + ebx + 2], 0x30303030
mov byte [edi + ebx + 1], 0x30
mov al, 0x30
mov byte [edi + ebx], al
add ebx, 6
jmp case.0x407dcd.38
mov byte [edi + ebx + 3], 0x30
mov byte [edi + ebx + 2], 0x30
jmp 0x407f96
mov byte [edi + ebx + 2], 0x30
mov byte [edi + ebx + 1], 0x30
mov al, 0x30
mov byte [edi + ebx], al
add ebx, 3
jmp case.0x407dcd.38
mov ecx, dword [esp + 0x70]
mov byte [edi + ebx + 2], cl
cmp ax, 0x63
ja 0x407fa8
mov byte [edi + ebx + 1], 0x30
mov al, 0x30
mov byte [edi + ebx], al
add ebx, 4
jmp case.0x407dcd.38
mov eax, dword [esp + 0x6c]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 4]
jmp 0x407f9d
xor ebx, ebx
mov edx, dword [esp]
movzx ecx, byte [esi + 0x14]
test cl, cl
jne 0x407a68
lea eax, [edi + ebx]
mov esi, dword [esp + 0x24]
mov ecx, esi
sub ecx, ebx
push dword [esp + 0x48]
push edx
push dword [esp + 0x38]
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x58]
push dword [esp + 0x60]
push str._04d__02d__02d__02d:_02d:_02d._03d__s
push ecx
push eax
call fcn.004080b0
add esp, 0x2c
mov ebp, eax
add ebp, ebx
lea eax, [esp + 0xa8]
mov dword [esp + 0x74], eax
lea ecx, [edi + ebp]
mov edx, esi
sub edx, ebp
push eax
push dword [esp + 0xa8]
push edx
push ecx
call fcn.0040eb50
add esp, 0x10
mov ebx, eax
add ebx, ebp
mov ebp, dword [esp + 0x9c]
cmp dword [ebp + 0x10], 0
je 0x408078
lea eax, [edi + ebx]
mov esi, dword [esp + 0x24]
mov ecx, esi
sub ecx, ebx
push str.e_0m
push 0x445b66
push ecx
push eax
call fcn.004080b0
add esp, 0x10
add ebx, eax
cmp ebx, esi
jge 0x408061
mov byte [edi + ebx], 0xa
inc ebx
mov eax, dword [ebp]
test eax, eax
je 0x408082
push ebx
push edi
push dword [esp + 0xa8]
call eax
add esp, 0xc
jmp 0x40808f
mov esi, dword [esp + 0x24]
cmp ebx, esi
jl 0x40805c
jmp 0x408061
mov ecx, ebp
mov edx, edi
push ebx
call fcn.004080e0
add esp, 4
mov eax, dword [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret