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

Disassembly:
push 0xffffffffffffffff
push 0x53ff85
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x58ab78]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x34], ebx
mov dword [ebx], eax
call fcn.004f0ee0
lea esi, [ebx + 0x404]
mov ecx, esi
mov dword [esi], 0
mov dword [esp + 0x2c], esi
mov dword [esi + 4], 0
call fcn.004deed0
mov dword [esi], eax
lea esi, [ebx + 0x40c]
mov dword [esp + 0xbc], 0
mov ecx, esi
mov dword [esp + 0x30], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004deed0
mov dword [esi], eax
lea ecx, [ebx + 0x414]
mov byte [esp + 0xbc], 1
mov dword [ebx + 0x414], 0
mov dword [ebx + 0x418], 0
call fcn.004f4ba0
mov dword [ebx + 0x414], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [esp + 0x80]
mov byte [esp + 0xbc], 3
push eax
call fcn.004f0db0
add esp, 4
or ebp, 0xffffffff
mov byte [esp + 0xbc], 4
cmp dword [esp + 0x90], 0
je 0x4f429a
lea edx, [esp + 0x80]
lea ecx, [esp + 0x18]
call fcn.004f1470
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
test esi, esi
je 0x4f419a
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4f419a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebp
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4f419a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4f41cc
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4f41cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebp
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4f41cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp dword [esp + 0x20], 0
jne 0x4f42a5
push str.Unable_to_open_message_catalog:
lea ecx, [esp + 0x9c]
call fcn.00427910
lea eax, [esp + 0x80]
mov byte [esp + 0xbc], 5
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004da0b0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [esp + 0xbc], 6
jb 0x4f421d
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x50]
lea eax, [esp + 0x18]
push eax
call fcn.004a14f7
mov dword [esp + 0x50], vtable.std::runtime_error.0
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0xbc], 8
jb 0x4f4252
push dword [esp + 0x38]
call fcn.0047d4a0
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00502a20
lea ecx, [esp + 0x50]
call fcn.004a156b
cmp dword [esp + 0xac], 0x10
mov byte [esp + 0xbc], 4
jb 0x4f429a
push dword [esp + 0x98]
call fcn.0047d4a0
add esp, 4
cmp dword [esp + 0x20], 0
je 0x4f464d
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x4f42b0
mov ecx, ebx
call fcn.00502b50
xor ecx, ecx
mov edx, 0xf
mov edi, eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov byte [esp + 0x50], cl
mov bl, byte [edi]
mov byte [esp + 0xbc], 9
test bl, bl
je 0x4f436b
mov edi, edi
mov eax, ebp
sub eax, ecx
cmp eax, 1
jbe 0x4f45c5
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4f45c5
cmp edx, esi
jae 0x4f430a
push ecx
push esi
lea ecx, [esp + 0x58]
call fcn.004303f0
jmp 0x4f4321
test esi, esi
jne 0x4f432b
cmp edx, 0x10
mov dword [esp + 0x60], esi
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
mov byte [eax], 0
mov ecx, dword [esp + 0x60]
test esi, esi
mov edx, dword [esp + 0x64]
setne al
test al, al
je 0x4f435f
cmp edx, 0x10
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
mov byte [ecx + eax], bl
lea eax, [esp + 0x50]
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x60], esi
cmovae eax, dword [esp + 0x50]
mov byte [eax + esi], 0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov bl, byte [edi + 1]
inc edi
test bl, bl
jne 0x4f42e0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
add eax, 0xc8
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
call fcn.004f1310
xor ecx, ecx
mov edi, 0xf
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ecx
mov byte [esp + 0x68], cl
xor ebx, ebx
mov byte [esp + 0xbc], 0xb
cmp dword [esp + 0x48], ebx
jbe 0x4f4463
jmp 0x4f43c0
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
mov dl, byte [eax + ebx]
mov eax, ebp
sub eax, ecx
mov byte [esp + 0x17], dl
cmp eax, 1
jbe 0x4f45c5
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4f45c5
cmp edi, esi
jae 0x4f4403
push ecx
push esi
lea ecx, [esp + 0x70]
call fcn.004303f0
mov dl, byte [esp + 0x17]
jmp 0x4f441a
test esi, esi
jne 0x4f4424
cmp edi, 0x10
mov dword [esp + 0x78], esi
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
mov byte [eax], 0
mov ecx, dword [esp + 0x78]
test esi, esi
mov edi, dword [esp + 0x7c]
setne al
test al, al
je 0x4f4458
cmp edi, 0x10
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
mov byte [eax + ecx], dl
lea eax, [esp + 0x68]
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0x78], esi
cmovae eax, dword [esp + 0x68]
mov byte [eax + esi], 0
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
inc ebx
cmp ebx, dword [esp + 0x48]
jb 0x4f43c0
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x1c], ebx
call fcn.004dec00
lea ecx, [esp + 0x68]
cmp eax, ecx
je 0x4f4491
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00431c30
mov edi, dword [esp + 0x7c]
cmp edi, 0x10
jb 0x4f44a2
push dword [esp + 0x68]
call fcn.0047d4a0
add esp, 4
cmp dword [esp + 0x4c], 0x10
jb 0x4f44b5
push dword [esp + 0x38]
call fcn.0047d4a0
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov byte [esp + 0xbc], 4
jb 0x4f44e5
push dword [esp + 0x50]
call fcn.0047d4a0
add esp, 4
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, 0x15
jle 0x4f42b0
mov eax, dword [0x59d7ec]
test al, 1
jne 0x4f453c
or eax, 1
mov dword [0x59d7ec], eax
push 0x543de0
mov byte [esp + 0xc0], 0xc
mov dword [0x59d7e8], 0xf
mov dword [0x59d7e4], 0
mov byte [0x59d7d4], 0
call fcn.0049f971
add esp, 4
mov byte [esp + 0xbc], 4
mov ebx, dword [esp + 0x28]
xor edi, edi
push 0x59d7d4
lea eax, [edi + 0x12c]
push eax
push dword [ebx]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.004f1310
cmp dword [esp + 0x48], 0
mov byte [esp + 0xbc], 0xd
je 0x4f4625
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.004f4db0
mov esi, eax
cmp esi, dword [ebx]
je 0x4f45e3
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov ebx, dword [edx + 0x10]
jb 0x4f4594
mov edx, dword [edx]
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov eax, ebx
cmovae ecx, dword [esp + 0x38]
cmp ebp, ebx
cmovb eax, ebp
push eax
push edx
push ecx
call fcn.0045e0d0
add esp, 0xc
test eax, eax
jne 0x4f45d8
cmp ebp, ebx
jae 0x4f45cf
or eax, 0xffffffff
jmp 0x4f45d6
push str.string_too_long
call fcn.004c3890
xor eax, eax
cmp ebp, ebx
setne al
test eax, eax
sets al
test al, al
je 0x4f4617
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x38]
mov ecx, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x30]
push eax
push 0x59d7b7
call fcn.004f1c10
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x24]
push eax
call fcn.004f2320
mov esi, dword [esp + 0x18]
mov eax, dword [edi*4 + 0x55d0e0]
mov ebx, dword [esp + 0x28]
mov dword [esi + 0x28], eax
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0xbc], 4
jb 0x4f4640
push dword [esp + 0x38]
call fcn.0047d4a0
add esp, 4
inc edi
cmp edi, 0xd
jbe 0x4f4542
or ebp, 0xffffffff
lea eax, [ebx + 0x420]
push eax
push ebx
call fcn.004f2b40
add esp, 8
mov dword [ebx + 0x41c], eax
cmp dword [esp + 0x94], 0x10
jb 0x4f467c
push dword [esp + 0x80]
call fcn.0047d4a0
add esp, 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
mov byte [esp + 0xbc], 2
test esi, esi
je 0x4f46d2
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4f46d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebp
cmp ebp, 1
jne 0x4f46d2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0049f3ce
add esp, 0xac
ret 4