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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov ebp, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
mov word [esp + 0x28], 0x20
mov dword [esp + 0x24], 0x20202020
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5132e8
test ebp, ebp
je 0x5132f5
cmp byte [ebp], 0
jne 0x51330b
jmp 0x5132f5
call fcn.005156b0
mov dword [esp + 0x2c], eax
test ebp, ebp
jne 0x5132e0
mov ebp, 0x58354c
cmp byte [0x58354c], 0
mov edi, dword [esp + 0x2c]
je 0x513d21
mov esi, dword [esp + 0x90]
mov dword [esp + 8], 0xffffffff
mov edi, dword [esp + 0x2c]
mov ecx, 0xffffffff
jmp 0x513490
sub esp, 4
push 2
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
jmp 0x513737
cmp dword [0x583588], 0
jne 0x513353
mov dword [0x583588], 1
cmp edx, 0x63
jg 0x51336b
cmp edx, 0x1f
jl 0x513365
add edx, 0x76c
jmp 0x51336b
add edx, 0x7d0
lea esi, [ecx - 1]
cmp esi, 2
mov esi, 0xd
jb 0x51337d
mov esi, 1
sbb edx, 0
add esi, ecx
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fmul dword [0x582ccc]
fnstcw word [esp + 0x10]
movzx ecx, word [esp + 0x10]
mov word [esp + 0x10], 0xc7f
fldcw word [esp + 0x10]
mov word [esp + 0x10], cx
fistp dword [esp + 0x78]
fldcw word [esp + 0x10]
mov dword [esp + 0x6c], esi
fild dword [esp + 0x6c]
fmul qword [0x582cd4]
fnstcw word [esp + 0xe]
movzx ecx, word [esp + 0xe]
mov word [esp + 0xe], 0xc7f
fldcw word [esp + 0xe]
mov word [esp + 0xe], cx
fistp dword [esp + 0x74]
fldcw word [esp + 0xe]
add eax, dword [esp + 0x74]
add eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x90]
cmp ebx, 1
je 0x513979
mov eax, dword [esp + 8]
mov dword [esp + 0x20], eax
sub esp, 0xc
lea eax, [esp + 0x2c]
push eax
call fcn.0051415c
add esp, 0x10
sub esp, 4
mov dword [esp + 8], eax
push eax
push 0x582f59
push edi
call fcn.0056a9ac
add esp, 0x10
sub esp, 0xc
push edi
call fcn.00566fdc
add esp, 0x10
jmp 0x51393f
xor eax, eax
mov ecx, dword [0x583584]
shl ecx, 4
sub esp, 8
push dword [ecx + eax*4 + 0x5834f0]
push edi
call fcn.00566f90
add esp, 0x10
sub esp, 0xc
push ebp
call fcn.00515604
add esp, 0x10
sub esp, 8
push eax
push edi
call fcn.00515644
add esp, 0x10
sub esp, 0xc
push edi
call fcn.00566fdc
add esp, 0x10
lea edi, [edi + eax - 2]
jmp 0x513737
mov dword [esp + 4], ecx
sub esp, 4
push 3
push 0x582f3c
push ebp
call fcn.00566844
add esp, 0x10
test eax, eax
je 0x513510
sub esp, 4
push 2
push 0x582f40
push ebp
call fcn.00566844
add esp, 0x10
test eax, eax
je 0x513520
movzx ebx, byte [ebp]
sub esp, 4
cmp bl, 0x44
jne 0x51358b
push 3
push 0x582f43
push ebp
call fcn.005670b4
add esp, 0x10
test eax, eax
je 0x513689
sub esp, 4
push 2
push 0x582f1c
push ebp
call fcn.005670b4
add esp, 0x10
cmp eax, 1
mov ebx, 1
adc ebx, 0
jmp 0x51368e
mov ebx, 3
jmp 0x513525
mov ebx, 2
mov eax, dword [esi]
test eax, eax
je 0x513570
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x513570
mov edx, dword [esi + 8]
test edx, edx
je 0x513570
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
jne 0x5138bc
cmp dword [0x583588], 0
je 0x5137af
cmp edx, 0x63
jg 0x51383d
cmp edx, 0x1f
jl 0x513837
add edx, 0x76c
jmp 0x51383d
sub esp, 4
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
mov ecx, dword [esp + 4]
jmp 0x513d10
push 2
push 0x582f23
push ebp
call fcn.005670b4
add esp, 0x10
test eax, eax
je 0x5136fb
cmp bl, 0x59
jne 0x5135f9
sub esp, 4
push 4
push 0x582f26
push ebp
call fcn.005670b4
add esp, 0x10
test eax, eax
je 0x513754
sub esp, 4
push 3
push 0x582f4c
push ebp
call fcn.005670b4
add esp, 0x10
test eax, eax
je 0x513824
sub esp, 4
push 2
push 0x582f2f
push ebp
call fcn.005670b4
add esp, 0x10
test eax, eax
je 0x5139c7
sub esp, 4
push 5
push str.MONTH
push ebp
call fcn.00566844
add esp, 0x10
test eax, eax
je 0x513745
sub esp, 4
push 3
push 0x582f32
push ebp
call fcn.00566844
add esp, 0x10
test eax, eax
je 0x5137c4
sub esp, 4
push 2
push 0x582f56
push ebp
call fcn.005670b4
add esp, 0x10
test eax, eax
je 0x51394c
mov ebx, 1
cmp byte [ebp], 0x57
je 0x513951
sub esp, 4
push 2
push 0x582f5c
push ebp
call fcn.00566844
add esp, 0x10
test eax, eax
je 0x513c61
movzx eax, byte [ebp]
mov byte [edi], al
mov ecx, 0xffffffff
mov ebx, 1
jmp 0x513d10
mov ebx, 3
mov eax, dword [esi]
test eax, eax
je 0x5136e0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5136e0
mov edx, dword [esi + 8]
test edx, edx
je 0x5136e0
cmp dword [esp + 8], 0xffffffff
jne 0x513a93
cmp ebx, 2
je 0x513a93
cmp dword [0x583588], 0
je 0x5139f0
cmp edx, 0x63
jg 0x513a0b
cmp edx, 0x1f
jl 0x513a05
add edx, 0x76c
jmp 0x513a0b
sub esp, 4
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
mov ecx, dword [esp + 4]
jmp 0x513d10
cmp dword [esi], 0
je 0x513724
mov eax, dword [esi + 4]
test eax, eax
je 0x513724
cmp dword [esi + 8], 0
je 0x513724
push eax
push 2
push str._0d
push edi
mov dword [esp + 0x14], eax
call fcn.0056a9ac
add esp, 0x10
jmp 0x513737
sub esp, 4
push 2
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
mov ebx, 2
mov ecx, dword [esp + 4]
jmp 0x513d10
mov ebx, 5
cmp dword [esi], 0
jne 0x5137ce
jmp 0x513809
mov ebx, 4
cmp dword [esi], 0
je 0x5139d5
cmp dword [esi + 4], 0
je 0x5139d5
mov eax, dword [esi + 8]
test eax, eax
je 0x5139d5
sub esp, 8
push ebx
push 0xa
mov dword [esp + 0x14], eax
call fcn.005155d4
add esp, 0x10
mov ecx, eax
mov eax, dword [esp + 4]
cdq
idiv ecx
mov dword [esp + 4], edx
push edx
push ebx
push str._0d
push edi
call fcn.0056a9ac
mov ecx, dword [esp + 0x14]
add esp, 0x10
jmp 0x513d10
mov dword [0x583588], 1
cmp edx, 0x63
jle 0x51355c
jmp 0x51383d
mov ebx, 3
cmp dword [esi], 0
je 0x513809
mov eax, dword [esi + 4]
test eax, eax
je 0x513809
cmp dword [esi + 8], 0
je 0x513809
dec eax
cmp ebx, 3
mov ecx, dword [0x583584]
lea ecx, [ecx + ecx*2]
jne 0x513bc1
shl ecx, 4
sub esp, 8
push dword [ecx + eax*4 + 0x58310c]
push edi
call fcn.00566f90
add esp, 0x10
jmp 0x513bd7
sub esp, 4
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
mov ecx, dword [esp + 4]
jmp 0x513d10
mov ebx, 3
cmp dword [esi], 0
jne 0x513762
jmp 0x5139d5
add edx, 0x7d0
lea esi, [ecx - 1]
cmp esi, 2
mov esi, 0xd
jb 0x51384f
mov esi, 1
sbb edx, 0
add esi, ecx
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fmul dword [0x582ccc]
fnstcw word [esp + 0x1e]
movzx ecx, word [esp + 0x1e]
mov word [esp + 0x1e], 0xc7f
fldcw word [esp + 0x1e]
mov word [esp + 0x1e], cx
fistp dword [esp + 0x40]
fldcw word [esp + 0x1e]
mov dword [esp + 0x34], esi
fild dword [esp + 0x34]
fmul qword [0x582cd4]
fnstcw word [esp + 0x1c]
movzx ecx, word [esp + 0x1c]
mov word [esp + 0x1c], 0xc7f
fldcw word [esp + 0x1c]
mov word [esp + 0x1c], cx
fistp dword [esp + 0x3c]
fldcw word [esp + 0x1c]
add eax, dword [esp + 0x3c]
add eax, dword [esp + 0x40]
mov esi, eax
mov eax, dword [0x583580]
mov ecx, esi
lea esi, [ecx + eax]
mov dword [esp + 8], ecx
lea ecx, [ecx + eax + 4]
mov eax, ecx
mov edx, 0x92492493
imul edx
lea eax, [edx + esi + 4]
mov edx, eax
shr edx, 0x1f
sar eax, 2
add eax, edx
lea edx, [eax*8]
sub edx, eax
sub ecx, edx
cmp ebx, 2
mov eax, dword [0x583584]
lea edx, [eax + eax*8]
lea edx, [edx + edx*2]
jne 0x513917
add edx, eax
sub esp, 8
push dword [edx + ecx*4 + 0x5831ec]
push edi
call fcn.00566f90
add esp, 0x10
jmp 0x51392c
add edx, eax
sub esp, 8
push dword [edx + ecx*4 + 0x58328c]
push edi
call fcn.00566f90
add esp, 0x10
mov esi, dword [esp + 0x90]
sub esp, 0xc
push edi
call fcn.00566fdc
add esp, 0x10
sub eax, ebx
add edi, eax
mov ecx, dword [esp + 4]
jmp 0x513d10
mov ebx, 2
mov eax, dword [esi]
test eax, eax
je 0x5139ac
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5139ac
mov edx, dword [esi + 8]
test edx, edx
je 0x5139ac
cmp dword [esp + 8], 0xffffffff
je 0x513340
cmp ebx, 1
jne 0x5133fc
mov eax, dword [esp + 8]
mov dword [esp + 0x20], eax
sub esp, 0xc
lea eax, [esp + 0x2c]
push eax
call fcn.00513f60
add esp, 0x10
sub esp, 4
mov dword [esp + 8], eax
push eax
push 0x582f59
push edi
call fcn.0056a9ac
add esp, 0x10
jmp 0x51342a
sub esp, 4
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
mov ecx, dword [esp + 4]
jmp 0x513d10
mov ebx, 2
cmp dword [esi], 0
jne 0x513762
sub esp, 4
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005667e8
add esp, 0x10
mov ecx, dword [esp + 4]
jmp 0x513d10
mov dword [0x583588], 1
cmp edx, 0x63
jle 0x5136cc
jmp 0x513a0b
add edx, 0x7d0
lea esi, [ecx - 1]
cmp esi, 2
mov esi, 0xd
jb 0x513a1d
mov esi, 1
sbb edx, 0
add esi, ecx
mov dword [esp + 0x60], edx
fild dword [esp + 0x60]
fmul dword [0x582ccc]
fnstcw word [esp + 0x1a]
movzx ecx, word [esp + 0x1a]
mov word [esp + 0x1a], 0xc7f
fldcw word [esp + 0x1a]
mov word [esp + 0x1a], cx
fistp dword [esp + 0x68]
fldcw word [esp + 0x1a]
mov dword [esp + 0x5c], esi
fild dword [esp + 0x5c]
fmul qword [0x582cd4]
fnstcw word [esp + 0x18]
movzx ecx, word [esp + 0x18]
mov word [esp + 0x18], 0xc7f
fldcw word [esp + 0x18]
mov word [esp + 0x18], cx
fistp dword [esp + 0x64]
fldcw word [esp + 0x18]
add eax, dword [esp + 0x64]
add eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x90]
mov eax, ebx
and al, 3
cmp al, 1
je 0x513b82
cmp al, 2
je 0x513bba
cmp al, 3
mov esi, dword [esp + 4]
jne 0x513ce6
mov ecx, dword [0x583580]
add ecx, dword [esp + 8]
jle 0x513c01
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fadd qword [0x582cdc]
fdiv dword [0x582ccc]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
mov word [esp + 0x16], 0xc7f
fldcw word [esp + 0x16]
mov word [esp + 0x16], ax
fistp dword [esp + 0x50]
fldcw word [esp + 0x16]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
imul edx, eax, 0xfffffe93
mov esi, eax
sar esi, 0x1f
shr esi, 0x1e
add esi, eax
sar esi, 2
sub ecx, esi
add ecx, edx
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
fdiv qword [0x582cd4]
fnstcw word [esp + 0x14]
movzx ecx, word [esp + 0x14]
mov word [esp + 0x14], 0xc7f
fldcw word [esp + 0x14]
mov word [esp + 0x14], cx
fistp dword [esp + 0x58]
fldcw word [esp + 0x14]
mov edx, dword [esp + 0x58]
mov esi, edx
and esi, 0xfffffffe
lea ecx, [edx - 0xd]
cmp esi, 0xe
jne 0x513c3f
lea edx, [esp + 0x30]
jne 0x513c4d
mov esi, 1
je 0x513b71
mov esi, 0xffffffff
add eax, esi
mov dword [esp + 0x20], ecx
mov dword [edx], eax
mov eax, dword [esp + 0x30]
jmp 0x513c13
mov eax, dword [0x583580]
mov edx, dword [esp + 8]
lea ecx, [edx + eax]
lea esi, [edx + eax + 4]
mov eax, esi
mov edx, 0x92492493
imul edx
lea eax, [edx + ecx + 4]
mov ecx, eax
shr ecx, 0x1f
sar eax, 2
add eax, ecx
lea ecx, [eax*8]
sub ecx, eax
sub esi, ecx
inc esi
jmp 0x513ce6
mov esi, dword [esi]
jmp 0x513ce6
shl ecx, 4
sub esp, 8
push dword [ecx + eax*4 + 0x583388]
push edi
call fcn.00566f90
add esp, 0x10
sub esp, 0xc
push ebp
call fcn.00515604
add esp, 0x10
sub esp, 8
push eax
push edi
call fcn.00515644
add esp, 0x10
sub esp, 0xc
push edi
call fcn.00566fdc
add esp, 0x10
jmp 0x51393f
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
xor eax, eax
mov dword [esp + 0x20], 1
cmp dword [0x583588], 0
jne 0x513c2e
mov dword [0x583588], 1
cmp eax, 0x63
jg 0x513ca8
cmp eax, 0x1f
jl 0x513ca3
add eax, 0x76c
jmp 0x513ca8
mov ecx, edx
mov eax, edx
lea edx, [esp + 0x30]
je 0x513b65
lea edx, [esp + 0x20]
mov esi, 1
jne 0x513b6c
jmp 0x513b71
cmp dword [esi], 0
je 0x513328
cmp dword [esi + 4], 0
je 0x513328
cmp dword [esi + 8], 0
je 0x513328
mov ecx, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x51343b
lea eax, [ecx - 1]
cmp eax, 2
mov eax, ecx
jb 0x51343d
mov eax, 3
jmp 0x51343d
add eax, 0x7d0
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x582ccc]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
mov word [esp + 0x12], 0xc7f
fldcw word [esp + 0x12]
mov word [esp + 0x12], ax
fistp dword [esp + 0x48]
fldcw word [esp + 0x12]
mov eax, dword [esp + 8]
lea esi, [eax - 0x1ac]
sub esi, dword [esp + 0x48]
push esi
push ebx
push str._0d
push edi
call fcn.0056a9ac
add esp, 0x10
sub esp, 0xc
push edi
call fcn.00566fdc
mov ecx, esi
mov esi, dword [esp + 0xa0]
add esp, 0x10
sub eax, ebx
add edi, eax
nop
add edi, ebx
cmp byte [ebp + ebx], 0
lea ebp, [ebp + ebx]
jne 0x513490
mov byte [edi], 0
mov eax, dword [esp + 0x2c]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret