Function at 0x51c980
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [0x826818]
push esi
mov ax, word [ebx + 0x40]
push edi
push eax
call fcn.004466b0
test eax, eax
mov dword [ebx + 0x60], eax
je 0x51cc55
mov ecx, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x78]
shl ecx, 3
mov edx, ecx
mov eax, 0xf8f8f8f8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x7c]
imul ecx, dword [ebx + 0x4c]
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x80]
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x84]
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x51ca3b
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x51ca3b
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x51ca3b
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x51ca3b
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x51caff
mov edx, dword [ebx + 0x60]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x10]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0xc], esi
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
movsx si, byte [edx + 0xec]
test ecx, ecx
setne cl
push ecx
lea edx, [ebx + 0x6f]
sub esp, 8
mov ecx, dword [edx]
mov eax, esp
sub esp, 8
mov dword [eax], ecx
mov cx, word [edx + 4]
mov dl, byte [edx + 6]
mov word [eax + 4], cx
mov ecx, esp
mov byte [eax + 6], dl
lea eax, [ebx + 0x68]
mov edx, dword [ebx + 0x68]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov word [ecx + 4], dx
mov al, byte [eax + 6]
mov byte [ecx + 6], al
mov ecx, dword [ebx + 0x44]
push ecx
call fcn.0047f970
mov ecx, dword [0x8267e8]
add esp, 4
lea edx, [esp + 0x28]
push eax
push esi
push edx
call dword [sym.imp.TCalc.dll_public:_long_int___thiscall_CalcInterface::InputDataInfo_char___short_int__short_int__struct_tag_NTime__struct_tag_NTime__unsigned_char__unsigned_long_int_]
mov ecx, dword [ebx + 0x48]
mov dword [ebx + 0x50], eax
cmp ecx, eax
jge 0x51cada
mov eax, ecx
mov dword [ebx + 0x50], eax
mov ecx, dword [0x8267e8]
mov edx, dword [ecx + 4]
test edx, edx
mov dword [ebx + 0x5c], edx
je 0x51cc55
mov edx, dword [ebx + 8]
add edx, 4
cmp eax, edx
jl 0x51cc55
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x51cc49
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x51cbf0
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x51cb2c
push eax
call fcn.00643cfc
add esp, 4
mov dword [ebx + 0x64], 0
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x51cb43
push eax
call fcn.00643cfc
add esp, 4
mov dword [ebx + 0x58], 0
push 0x96
call fcn.00643b70
mov edi, dword [ebx + 0xc]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x50]
add eax, edi
shl eax, 5
push eax
call fcn.00643b70
mov edi, dword [ebx + 0x64]
mov dword [ebx + 0x58], eax
mov ecx, 0x25
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebx + 0x50]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x58]
add ecx, eax
shl ecx, 5
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
add esp, 8
mov ecx, edx
and ecx, 3
push 1
push 4
rep stosb byte es:[edi], al
call fcn.00476fc0
mov dx, word [ebx + 0x50]
mov ecx, dword [ebx + 0x64]
add dx, word [ebx + 0xc]
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x58]
push ecx
mov ecx, dword [ebx + 0x60]
push 4
push edx
push eax
push ecx
mov ecx, dword [0x826818]
call fcn.0044a8e0
movsx edx, ax
mov cx, dx
push 4
mov ax, dx
push 1
dec cx
mov dword [ebx + 0x54], edx
mov edx, dword [ebx + 0x58]
push eax
mov eax, dword [ebx + 0x60]
push ecx
mov ecx, dword [0x826818]
push 0
push edx
push eax
call fcn.00447b60
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x51cc49
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x51cc49
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x51cc15
push eax
call fcn.00643cfc
add esp, 4
mov dword [ebx + 0x64], 0
push 0x96
call fcn.00643b70
mov edi, eax
mov ecx, 0x25
xor eax, eax
mov dword [ebx + 0x64], edi
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
push 0
push 0
push ecx
mov ecx, dword [0x826818]
push edx
call fcn.00448890
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret