Function at 0x405460
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 ebp, dword [esp + 0x9c]
mov ebx, 0xfffffff6
cmp dword [ebp + 0xc], edi
jg 0x405b9a
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [edi - 1]
mov dword [esp + 0x40], 0x438887
mov ebx, 0x438887
cmp eax, 4
ja 0x4054b8
mov eax, dword [edi*4 + 0x438944]
mov dword [esp + 0x40], eax
mov ebx, dword [edi*4 + 0x438958]
movzx eax, word [esp + 0x86]
mov dword [esp], eax
movzx eax, word [esp + 0x78]
mov dword [esp + 0x64], eax
movzx eax, word [esp + 0x7a]
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x7e]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x80]
mov dword [esp + 0x34], eax
movzx eax, word [esp + 0x82]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x84]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x274]
mov dword [esp + 0x70], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0
je 0x405afa
push ebx
push 0x4388b5
push esi
push edi
call fcn.00405bb0
add esp, 0x10
mov ebx, eax
movzx ecx, byte [ebp + 0x14]
test cl, cl
je 0x405b08
mov dword [esp + 0x68], esi
imul ebp, dword [esp], 0x3e8
mov edx, 0x1999999a
mov eax, ebp
mul edx
mov esi, edx
add esi, edx
imul eax, dword [esp], 0x64
mov dword [esp + 0x24], eax
mov edx, 0x1999999a
mul edx
lea eax, [esi + esi*4]
sub ebp, eax
mov dword [esp + 0x60], ebp
add edx, edx
lea eax, [edx + edx*4]
sub dword [esp + 0x24], eax
mov ebp, dword [esp]
imul edx, ebp, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
mov esi, ebp
sub esi, eax
mov dword [esp + 0x28], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0x20], edx
mov eax, ebp
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 + 0x2c]
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 + 0x18], 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 + 0x58], 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 + 0x34]
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 + 0x10], 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 + 0x50], 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 + 0x3c]
imul edx, esi, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
sub esi, eax
mov dword [esp + 0x4c], 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 ebp, dword [esp + 0x64]
imul edx, ebp, 0xcccd
shr edx, 0x13
lea eax, [edx + edx]
lea eax, [eax + eax*4]
mov esi, ebp
sub esi, eax
mov dword [esp + 0x48], esi
imul eax, edx, 0x199a
shr eax, 0xf
and eax, 0xfffffffe
lea eax, [eax + eax*4]
sub edx, eax
mov dword [esp + 0x44], edx
mov eax, ebp
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, ebp
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 + 0x60]
or al, 0x30
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
or al, 0x30
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
or al, 0x30
mov dword [esp + 0x28], 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 + 0x5c]
or al, 0x30
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
or al, 0x30
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
or al, 0x30
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
or al, 0x30
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
or al, 0x30
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
or al, 0x30
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
or al, 0x30
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
or al, 0x30
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
or al, 0x30
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 8]
or al, 0x30
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
or al, 0x30
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
or al, 0x30
mov dword [esp + 0x44], 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 esi, 0x30
cmovb edx, esi
mov dword [esp + 0x1c], edx
cmp word [esp + 0x2c], 0xa
movzx edx, byte [esp + 0x18]
cmovb edx, esi
mov dword [esp + 0x18], edx
cmp word [esp + 0x30], 0xa
movzx edx, byte [esp + 0x14]
cmovb edx, esi
mov dword [esp + 0x14], edx
cmp word [esp + 0x34], 0xa
movzx edx, byte [esp + 0x10]
cmovb edx, esi
mov dword [esp + 0x10], edx
cmp word [esp + 0x38], 0xa
movzx edx, byte [esp + 0xc]
cmovb edx, esi
mov dword [esp + 0xc], edx
cmp word [esp + 0x3c], 0xa
movzx edx, byte [esp + 8]
cmovb edx, esi
mov dword [esp + 8], edx
mov edx, ebp
cmp ebp, 0x3e8
movzx eax, byte [esp + 4]
cmovb eax, esi
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x9c]
lea esi, [ebp + 0x14]
jmp 0x405886
mov byte [edi + ebx], 0x25
nop word cs:[eax + eax]
inc ebx
movzx ecx, byte [esi + 1]
inc esi
cmp cl, 0x25
je 0x4058a0
movzx eax, cl
test eax, eax
je 0x405aac
mov byte [edi + ebx], cl
jmp 0x405880
movzx eax, byte [esi + 1]
inc esi
add eax, 0xffffffdb
cmp eax, 0x55
ja case.0x4058ad.38
jmp dword [eax*4 + 0x438970]
cmp dword [esp + 0x34], 0
je 0x405a2f
mov eax, dword [esp + 0x54]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x10]
jmp 0x405a2d
test edx, edx
je 0x405a41
mov eax, dword [esp + 0x48]
mov byte [edi + ebx + 3], al
cmp dx, 9
ja 0x405a7e
mov byte [edi + ebx + 2], 0x30
jmp 0x405a8c
mov ecx, dword [esp + 0x40]
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.0x4058ad.38
mov eax, dword [esp]
test eax, eax
je 0x405a4d
mov ecx, dword [esp + 0x60]
mov byte [edi + ebx + 5], cl
mov ecx, dword [esp + 0x24]
mov byte [edi + ebx + 4], cl
mov byte [edi + ebx + 3], 0x30
mov ecx, dword [esp + 0x28]
mov byte [edi + ebx + 2], cl
cmp ax, 9
jbe 0x405a55
mov eax, dword [esp + 0x20]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x1c]
jmp 0x405a5c
mov eax, dword [esp]
test eax, eax
je 0x405a67
mov ecx, dword [esp + 0x28]
mov byte [edi + ebx + 2], cl
cmp ax, 9
jbe 0x405a6c
mov eax, dword [esp + 0x20]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x1c]
jmp 0x405a73
cmp dword [esp + 0x38], 0
je 0x405a2f
mov eax, dword [esp + 0x50]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0xc]
jmp 0x405a2d
mov eax, dword [esp + 0x40]
movzx eax, byte [eax]
mov byte [edi + ebx], al
jmp 0x405880
cmp dword [esp + 0x30], 0
je 0x405a2f
mov eax, dword [esp + 0x58]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x14]
jmp 0x405a2d
cmp dword [esp + 0x2c], 0
je 0x405a2f
mov eax, dword [esp + 0x5c]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 0x18]
jmp 0x405a2d
lea edx, [esp + 0xa8]
mov dword [esp + 0x74], edx
lea eax, [edi + ebx]
mov ecx, dword [esp + 0x68]
sub ecx, ebx
push edx
push dword [esp + 0xa8]
push ecx
push eax
call fcn.0040af80
mov edx, dword [esp + 0x74]
add esp, 0x10
add ebx, eax
jmp case.0x4058ad.38
cmp dword [esp + 0x3c], 0
je 0x405a2f
mov eax, dword [esp + 0x4c]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 8]
jmp 0x405a36
mov byte [edi + ebx + 1], 0x30
mov al, 0x30
mov byte [edi + ebx], al
add ebx, 2
jmp case.0x4058ad.38
mov byte [edi + ebx + 3], 0x30
mov byte [edi + ebx + 2], 0x30
jmp 0x405a8c
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.0x4058ad.38
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.0x4058ad.38
mov eax, dword [esp + 0x44]
mov byte [edi + ebx + 2], al
cmp dx, 0x63
ja 0x405a9e
mov byte [edi + ebx + 1], 0x30
mov al, 0x30
mov byte [edi + ebx], al
add ebx, 4
jmp case.0x4058ad.38
mov eax, dword [esp + 0x6c]
mov byte [edi + ebx + 1], al
mov eax, dword [esp + 4]
jmp 0x405a93
mov esi, dword [esp + 0x68]
cmp dword [ebp + 0x10], 0
je 0x405ad3
lea eax, [edi + ebx]
mov ecx, esi
sub ecx, ebx
push str.e_0m
push 0x4388b5
push ecx
push eax
call fcn.00405bb0
add esp, 0x10
add ebx, eax
cmp ebx, esi
jge 0x405adc
mov byte [edi + ebx], 0xa
inc ebx
mov eax, dword [ebp]
test eax, eax
je 0x405b83
push ebx
push edi
push dword [esp + 0xa8]
call eax
add esp, 0xc
jmp 0x405b90
xor ebx, ebx
movzx ecx, byte [ebp + 0x14]
test cl, cl
jne 0x405541
lea eax, [edi + ebx]
mov ecx, esi
sub ecx, ebx
push dword [esp + 0x40]
push dword [esp + 4]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x80]
push str._04d__02d__02d__02d:_02d:_02d._03d__s
push ecx
push eax
call fcn.00405bb0
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.0040af80
add esp, 0x10
mov ebx, eax
add ebx, ebp
mov ebp, dword [esp + 0x9c]
cmp dword [ebp + 0x10], 0
jne 0x405ab6
jmp 0x405ad3
mov ecx, ebp
mov edx, edi
push ebx
call fcn.00405be0
add esp, 4
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret