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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60c23a
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [eax], 1
movzx ecx, word [edi + 0x1204]
mov eax, dword [edi]
mov edx, dword [edi + 0x1200]
mov eax, dword [eax + 8]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x4c], edi
call eax
lea ecx, [esp + 0x94]
push ecx
call fcn.00470f50
push edi
lea esi, [esp + 0x98]
mov dword [esp + 0x164], 0
call fcn.00508790
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x164], 1
call fcn.0046ce10
push 0x64
lea edx, [esp + 0xe8]
push 0
push edx
mov byte [esp + 0x16c], 2
call fcn.005da970
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ebx, [esp + 0x18]
mov byte [esp + 0x164], 3
call fcn.00509010
mov esi, dword [esp + 0x14]
push 0x64
lea eax, [esp + 0xe8]
push eax
push 0x800
push esi
call fcn.005071d0
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
jne 0x509256
push 0x637bb4
call fcn.0040b2a0
add esp, 4
mov eax, esi
call fcn.00507580
push 1
mov esi, edi
mov dword [edi + 0x1214], 1
call fcn.0050abf0
mov byte [esp + 0x160], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x509531
mov eax, dword [esp + 0xe4]
cmp eax, 8
mov dword [esp + 0x10], eax
jbe 0x50926e
mov dword [esp + 0x10], 8
mov ecx, dword [esp + 0x10]
push ecx
push 0x637bcc
call fcn.0040b2a0
mov ecx, dword [esp + 0x18]
add esp, 8
cmp ecx, ebx
jbe 0x50948c
lea eax, [esp + 0xec]
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
jmp 0x5092a4
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 4]
cmp esi, ebx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
jne 0x5092d7
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x1c], edx
mov esi, edx
lea edi, [esp + 0x4c]
call fcn.005080c0
push 2
push 0x637be8
lea ecx, [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402990
push esi
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x168], 4
call fcn.0050ae50
mov esi, 0x10
mov byte [esp + 0x160], 3
cmp dword [esp + 0x3c], esi
jb 0x509335
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005d2367
add esp, 4
push 9
push str.InputTime
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402990
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x168], 5
call fcn.0050ae50
mov byte [esp + 0x160], 3
cmp dword [esp + 0x3c], esi
jb 0x509387
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005d2367
add esp, 4
push 0xa
push str.ExceedTime
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402990
mov byte [esp + 0x160], 6
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0050ae50
mov byte [esp + 0x160], 3
cmp dword [esp + 0x3c], esi
jb 0x5093d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005d2367
add esp, 4
mov esi, dword [esp + 0x70]
cmp esi, ebx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x18], edi
je 0x50940a
mov ecx, dword [esp + 0x78]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x50940a
mov eax, edx
add eax, 4
mov dword [edx], edi
mov dword [esp + 0x74], eax
jmp 0x509435
cmp esi, edx
mov edi, edx
jbe 0x509415
call fcn.005d29f1
push edi
lea eax, [esp + 0x70]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x7c]
call fcn.00471c90
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
cmp ecx, ebx
jne 0x509443
mov dword [esp + 0x64], ebx
jmp 0x50944c
sub eax, ecx
sar eax, 2
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
push edx
push str.ID:_u__InputTime:_u__ExceedTime:_u
call fcn.0040b2a0
add dword [esp + 0x20], 0xc
add esp, 0x10
sub dword [esp + 0x40], 1
jne 0x5092a0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
push 0xb
push str.ReportArray
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00402990
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 7
call fcn.0050af90
mov byte [esp + 0x160], 3
cmp dword [esp + 0xe0], 0x10
jb 0x5094fb
mov edx, dword [esp + 0xcc]
push edx
call fcn.005d2367
add esp, 4
push 0x10902
push edi
lea ecx, [esp + 0x9c]
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00508910
mov byte [esp + 0x160], 2
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50954a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x164], 1
call fcn.0046cec0
mov byte [esp + 0x160], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x509583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x160], 0xffffffff
call fcn.00470fe0
xor eax, eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 4