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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x574
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x570], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [esp + 0x50], eax
mov esi, ecx
push edi
xor eax, eax
mov dword [esp + 0x3c], esi
push 0x30
mov dword [esp + 0x64], ebx
mov dword [esp + 0x38], eax
call fcn.0045a053
mov ecx, dword [esi + 0x58]
add esp, 4
push dword [ecx + 4]
push dword [ecx]
mov ecx, eax
call fcn.004416a0
mov edi, eax
add esi, 0x20
push esi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x3c]
mov ecx, edi
add eax, 0x38
push eax
call fcn.00445170
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [esp + 0x3c]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x48dd40]
movsd qword [esp + 0x70], xmm0
jb 0x438722
mov ecx, dword [ecx]
push eax
push ecx
push str.Histogram:__s_recorded__d_samples
push ebx
call fcn.00412e20
mov eax, dword [esi + 0x1c]
add esp, 0x10
test eax, 0xffff7fff
je 0x438753
mov eax, dword [esi + 0x1c]
and eax, 0xffff7fff
push eax
push str.__flags__0x_x_
push ebx
call fcn.00412e20
add esp, 0xc
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
mov ecx, ebx
call fcn.0040a2e0
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x38]
push edx
xor edi, edi
xor esi, esi
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, dword [esp + 0x34]
test bl, 8
je 0x438789
lea ecx, [esp + 0x78]
and ebx, 0xfffffff7
call fcn.00414010
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4387f5
test bl, 0x10
je 0x4387ac
lea ecx, [esp + 0x128]
and ebx, 0xffffffef
call fcn.00414010
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x6c]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x60]
push edx
call dword [eax + 0xc]
cmp dword [esp + 0x58], esi
cmovg esi, dword [esp + 0x58]
cmp dword [esp + 0x5c], edi
cmovg edi, dword [esp + 0x5c]
test bl, 0x20
je 0x4387ea
lea ecx, [esp + 0x1d8]
and ebx, 0xffffffdf
call fcn.00414010
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x438778
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [edi + 0x1c]
test eax, 0x8000
mov dword [esp + 0x578], 0xf
lea eax, [esp + 0x564]
mov dword [esp + 0x574], 0
mov byte [esp + 0x564], 0
push esi
je 0x438840
push 0x48ccc8
jmp 0x438845
push 0x48cc60
push eax
call fcn.00412e20
mov eax, dword [esp + 0x580]
add esp, 0xc
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x578]
cmp eax, 0x10
jb 0x43887e
inc eax
lea ecx, [esp + 0x564]
push eax
push dword [esp + 0x568]
call fcn.0040a4f0
mov eax, dword [esp + 0x34]
test al, 0x40
je 0x438899
and eax, 0xffffffbf
lea ecx, [esp + 0x288]
mov dword [esp + 0x34], eax
call fcn.00414010
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x44]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], edx
test ecx, ecx
je 0x4388c1
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x4388d7
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x34]
test al, al
jns 0x4388f4
and eax, 0xffffff7f
lea ecx, [esp + 0x338]
mov dword [esp + 0x34], eax
call fcn.00414010
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x438b0a
mov eax, dword [esp + 0x34]
test eax, 0x100
je 0x438927
and eax, 0xfffffeff
lea ecx, [esp + 0x3e8]
mov dword [esp + 0x34], eax
call fcn.00414010
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x70]
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
call dword [eax + 0xc]
mov eax, dword [edi + 0x1c]
test eax, 0x8000
push dword [esp + 0x48]
mov dword [esp + 0x564], 0xf
lea eax, [esp + 0x550]
mov dword [esp + 0x560], 0
mov byte [esp + 0x550], 0
je 0x438979
push 0x48ccc8
jmp 0x43897e
push 0x48cc60
push eax
call fcn.00412e20
add esp, 0xc
lea eax, [esp + 0x54c]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push eax
call fcn.0040a2e0
mov edi, dword [esp + 0x64]
xor esi, esi
add edi, 2
cmp dword [esp + 0x55c], edi
jae 0x4389ea
nop dword [eax]
mov edx, dword [ebx + 0x14]
cmp edx, 0x10
jb 0x4389bc
mov ecx, dword [ebx]
jmp 0x4389be
mov ecx, ebx
mov eax, dword [ebx + 0x10]
add eax, ecx
cmp edx, 0x10
jb 0x4389cc
mov ecx, dword [ebx]
jmp 0x4389ce
mov ecx, ebx
push 0x20
sub eax, ecx
mov ecx, ebx
push 1
push eax
call fcn.00410c30
mov eax, dword [esp + 0x55c]
inc esi
add eax, esi
cmp eax, edi
jb 0x4389b0
movd xmm1, dword [esp + 0x50]
mov esi, 0x48
movd xmm0, dword [esp + 0x4c]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
mulsd xmm1, qword [0x48dd38]
addsd xmm1, qword [0x48dd00]
cvttsd2si edi, xmm1
sub esi, edi
test edi, edi
jle 0x438a34
push 1
push 0x48ccc4
mov ecx, ebx
dec edi
call fcn.0040a1f0
test edi, edi
jg 0x438a21
push 1
push 0x48ccc0
mov ecx, ebx
call fcn.0040a1f0
test esi, esi
jle 0x438a59
push 1
push 0x48cccc
mov ecx, ebx
dec esi
call fcn.0040a1f0
test esi, esi
jg 0x438a46
mov eax, dword [esp + 0x50]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
push eax
push str.___d___3.1f___
push ebx
call fcn.00412e20
add esp, 0x14
mov ecx, ebx
push 0xffffffffffffffff
push 0
push dword [esp + 0x5c]
call fcn.0040a2e0
mov eax, dword [esp + 0x34]
test eax, 0x200
je 0x438ab1
and eax, 0xfffffdff
lea ecx, [esp + 0x498]
mov dword [esp + 0x34], eax
call fcn.00414010
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x560]
mov edi, dword [esp + 0x3c]
cmp ecx, 0x10
jb 0x4388d7
mov eax, dword [esp + 0x54c]
inc ecx
cmp ecx, 0xffffffff
ja 0x438b41
cmp ecx, 0x1000
jb 0x438afc
test al, 0x1f
jne 0x438b41
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x438b41
sub eax, ecx
cmp eax, 4
jb 0x438b41
cmp eax, 0x23
ja 0x438b41
mov eax, ecx
push eax
call fcn.0045a086
add esp, 4
jmp 0x4388d7
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x438b20
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x40]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x57c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 0xc
call fcn.0045ff61
int3