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

Disassembly:
push 0xffffffffffffffff
push 0x10093b80
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c6270]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x18]
push eax
call fcn.100752a8
add esp, 4
test eax, eax
je 0x10051bf0
call fcn.10075277
mov dword [esp + 0x18], eax
jmp 0x10051bf0
push 0x100cbb74
lea ecx, [esp + 0x20]
call fcn.100015c0
mov dword [esp + 0x68], 1
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push str._03x
push edx
call fcn.10011020
add esp, 0xc
push 0x100cbb74
lea ecx, [esp + 0x18]
call fcn.100015c0
mov byte [esp + 0x68], 3
mov edi, dword [esp + 0x74]
test edi, edi
je 0x10051c5a
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10051c40
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.1000d740
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.1000d740
mov esi, dword [esp + 0x78]
test esi, esi
je 0x10051c9a
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10051c80
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.1000d740
test edi, edi
jne 0x10051cb2
test esi, esi
jne 0x10051cb2
push 4
push str..TMP
lea ecx, [esp + 0x1c]
call fcn.1000d740
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.100013a0
test eax, eax
jl 0x10051e52
mov byte [esp + 0x68], 5
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [ebp - 0x10]
lea eax, [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10051d15
cmp eax, dword [esi]
jne 0x10051d15
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10051d50
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x10051e61
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.100719d3
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x40], edi
mov byte [esp + 0x68], 8
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.1000e8e0
mov byte [esp + 0x68], 0xb
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x68], 0xb
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051da1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0xa
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 0x28]
push ecx
call edi
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x44]
push edx
call fcn.10051aa0
test al, al
jne 0x10051e66
mov byte [esp + 0x68], 0x15
lea eax, [esp + 0x5c]
mov dword [esp + 0x24], eax
mov byte [esp + 0x68], 0x15
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051dfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x44]
push ecx
call edi
mov byte [esp + 0x68], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10051e25
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x68], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051e49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x18]
jmp 0x10051bf0
push 0
push 0x7f
push str.c:dvsp4_build_sw_toolswin32msvc90VC_atlmfcinclude_atlcore.h
push eax
call fcn.10002400
call fcn.10002140
mov al, 0xf
mov byte [esp + 0x68], al
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ecx
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051e98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x44]
push ecx
call edi
mov byte [esp + 0x68], 1
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10051ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10051ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc