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

Disassembly:
push 0xffffffffffffffff
push 0x1005ea2a
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10081730]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10081730]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb8]
mov ebp, ecx
lea esi, [ebp + 4]
mov ecx, esi
mov dword [esp + 0x14], ebp
mov dword [ebp], eax
call fcn.100442a0
mov dword [esi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xb4], 1
call fcn.10045d20
add esp, 4
cmp dword [esp + 0x74], ebx
mov byte [esp + 0xb0], 2
je 0x10051591
lea edx, [esp + 0x60]
lea ecx, [esp + 0x20]
call fcn.10054fc0
mov edx, dword [eax]
add eax, 4
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 3
mov dword [esp + 0x1c], edx
call fcn.10041660
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov byte [esp + 0xb0], 2
je 0x1005148a
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1005148a
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1005148a
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
cmp dword [esp + 0x18], ebx
jne 0x1005159b
push 0x20
mov edi, 0xf
push str.Unable_to_open_message_catalog:
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
call fcn.10002073
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x30]
mov bl, 4
push edx
mov byte [esp + 0xbc], bl
call fcn.100096d2
add esp, 0xc
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0xb4], 5
call fcn.10024ad2
mov ebp, 0x10
cmp dword [esp + 0x40], ebp
mov byte [esp + 0xb0], 7
jb 0x1005150b
mov eax, dword [esp + 0x2c]
push eax
call fcn.10031683
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.10054c20
cmp dword [esp + 0xa0], ebp
mov byte [esp + 0xb0], bl
mov dword [esp + 0x7c], vtable.std::runtime_error.0
jb 0x1005154d
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.10031683
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
call fcn.100315ff
cmp dword [esp + 0x5c], ebp
mov byte [esp + 0xb0], 2
jb 0x1005158b
mov edx, dword [esp + 0x48]
push edx
call fcn.10031683
add esp, 4
mov ebp, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x1005166f
mov bl, 1
mov byte [esp + 0x20], bl
mov ebp, 1
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.10045e70
mov edx, dword [edi]
push eax
push ebp
push edx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x50]
mov byte [esp + 0xbc], 8
call fcn.10055010
cmp dword [esp + 0x40], 8
mov byte [esp + 0xb0], 0xa
jb 0x100515f1
mov eax, dword [esp + 0x2c]
push eax
call fcn.10031683
add esp, 4
mov eax, dword [esp + 0x58]
xor edi, edi
cmp edi, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
jae 0x1005163a
jbe 0x10051613
call fcn.10032095
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x10051622
lea eax, [esp + 0x48]
lea ecx, [eax + edi*2]
push ecx
mov ecx, esi
call fcn.1004ecb0
mov byte [eax], bl
mov eax, dword [esp + 0x58]
add edi, 1
cmp edi, eax
jb 0x10051613
cmp dword [esp + 0x5c], 8
mov byte [esp + 0xb0], 2
jb 0x10051656
mov edx, dword [esp + 0x48]
push edx
call fcn.10031683
add esp, 4
add bl, 1
add ebp, 1
cmp bl, 0x39
mov byte [esp + 0x20], bl
jb 0x100515a6
mov ebp, dword [esp + 0x14]
jmp 0x100516aa
mov bl, 1
mov cl, bl
call fcn.10053a70
mov edi, eax
test edi, edi
je 0x100516a2
mov al, byte [edi]
test al, al
je 0x100516a2
movsx ax, al
movzx ecx, ax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push edx
mov ecx, esi
call fcn.1004ecb0
add edi, 1
mov byte [eax], bl
jne 0x1005167e
add bl, 1
cmp bl, 0x39
jb 0x10051671
cmp dword [esp + 0x78], 0x10
jb 0x100516be
mov eax, dword [esp + 0x64]
push eax
call fcn.10031683
add esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
mov byte [esp + 0xb0], 0
je 0x1005170d
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1005170d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1005170d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, ebp
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.10031c08
add esp, 0xa0
ret 4