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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x412ed2
movzx eax, byte [0x46e4b8]
test al, 1
je 0x412df9
push edi
call fcn.00416c20
add esp, 4
push edi
call fcn.00416c40
add esp, 4
test al, al
jne 0x412ed2
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov edx, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea esi, [eax + ecx]
add esi, 0x1000
movzx eax, byte [eax + ecx + 0x101e]
and eax, 0x3f
shl eax, 5
mov ebx, edi
sub ebx, dword [edx + 0x10]
sub esi, eax
prefetcht0 byte [esi]
cmp byte [edx + 6], 0
jne 0x412f91
cmp byte [edx + 3], 0
jne 0x412eda
mov dword [ebx], 0
lea eax, [edx + 0x40]
mov dword [ebp - 0x10], eax
push eax
mov edi, edx
call dword [0x459e58]
test al, al
je 0x41304b
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
sub dword [edi + 0x117c], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x41306c
bswap eax
mov dword [ebx], eax
mov dword [esi], ebx
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [esi + 0xc], ecx
test eax, 0x3ffe
je 0x41306f
lea ecx, [eax + 0x3ffe]
and ecx, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, ecx
mov dword [esi + 0xc], edx
test ecx, ecx
sete cl
test al, 1
jne 0x412ff4
test cl, cl
jne 0x412fe6
push dword [ebp - 0x10]
call dword [0x459e08]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x45fac4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x10], eax
cmp eax, 2
jb 0x412e49
mov edi, dword [esi + 8]
lea eax, [edx + 0x48]
lea ecx, [edx + 0x1148]
cmp ecx, edi
setae cl
cmp eax, edi
ja 0x413072
test cl, cl
mov ecx, dword [ebp - 0x10]
je 0x413003
sub edi, eax
sar edi, 5
add dword [ecx + 0x30], 1
adc dword [ecx + 0x34], 0
movzx eax, word [0x45ea38]
cmp edi, eax
ja 0x412ffb
mov eax, dword [ecx + edi*8 + 0x78]
bswap eax
mov dword [ebx], eax
mov dword [ecx + edi*8 + 0x78], ebx
inc byte [ecx + edi*8 + 0x7c]
movzx eax, word [ecx + edi*8 + 0x7e]
add dword [ecx], eax
add dword [ecx + 0x38], 1
adc dword [ecx + 0x3c], 0
movzx eax, byte [ecx + edi*8 + 0x7d]
cmp byte [ecx + edi*8 + 0x7c], al
ja 0x413079
movzx eax, byte [ecx + 4]
test al, 1
jne 0x413058
movzx eax, word [ecx + edi*8 + 0x7e]
sub eax, dword [edx + 0xc]
add dword [ecx + 0x68], 1
adc dword [ecx + 0x6c], 0
add dword [ecx + 0x70], eax
adc dword [ecx + 0x74], 0
jmp 0x412ed2
test ebx, 0xfff
je 0x41302c
lea ecx, [ebx - 4]
mov eax, dword [ecx]
and eax, 0x7fffffff
cmp eax, 1
jne 0x4130a0
mov eax, dword [ecx]
nop word cs:[eax + eax]
mov edi, eax
and edi, 0xfffffffe
lock cmpxchg dword [ecx], edi
jne 0x412fc0
test al, 1
je 0x41309a
and eax, 0x7fffffff
cmp eax, 1
jne 0x4130ed
jmp 0x412e3f
mov ecx, esi
push 1
call fcn.0040de90
jmp 0x412ec9
mov cl, 1
jmp 0x412ec1
add dword [ecx + 0x40], 1
adc dword [ecx + 0x44], 0
test byte [esi + 0xf], 8
jne 0x41311a
mov eax, dword [esi + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [edx + 0xc]
add dword [ecx + 0x68], 1
adc dword [ecx + 0x6c], 0
add dword [ecx + 0x70], eax
adc dword [ecx + 0x74], 0
jmp 0x412e49
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
add ecx, eax
add ecx, 0x2000
jmp 0x412fa0
mov ecx, dword [ebp - 0x10]
call fcn.004111f0
jmp 0x412e66
mov ecx, dword [ebp - 0x10]
mov esi, edx
call fcn.00410fb0
mov ecx, dword [ebp - 0x10]
mov edx, esi
jmp 0x412f75
int3
int3
xor ecx, ecx
jmp 0x412f14
mov esi, edx
lea edx, [ecx + edi*8]
add edx, 0x78
movzx eax, al
shr eax, 1
mov ecx, dword [ebp - 0x10]
push eax
push edx
call fcn.00410c10
mov ecx, dword [ebp - 0x10]
mov edx, esi
jmp 0x412f69
push eax
call fcn.0044d800
cmp byte [edx + 7], 0
je 0x412fb0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test byte [esi + 0xf], 8
jne 0x413122
mov eax, dword [esi + 8]
add eax, 0xc
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x46e4d0]
test ecx, ecx
jne 0x413127
push dword [ebp - 0x14]
push 0xef
push edi
call fcn.00401f80
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
jmp 0x412fb0
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x1198], eax
lock inc dword [edx + 0x119c]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x11a0], eax
lock inc dword [edx + 0x11a4]
jmp 0x412ed2
lea eax, [esi + 0x20]
jmp 0x413013
lea eax, [esi + 0x20]
jmp 0x4130bc
call dword [section..00cfg]
push dword [ebp - 0x14]
push edi
call ecx
add esp, 8
jmp 0x4130e2