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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d689f
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x89], 0
mov dword [esp + 0x60], edi
je 0x404a81
lea ebx, [edi + 0xa4]
xor edx, edx
lea esi, [esp + 0x80]
mov eax, ebx
mov dword [esp + 0x84], ebx
call fcn.004029c0
mov dword [esp + 0x198], 0
mov eax, dword [esp + 0x80]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x60], esp
mov esi, esp
mov dword [esp + 0x24], eax
call fcn.0041b370
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x98]
call fcn.004029f0
mov byte [esp + 0x198], 1
xor ebx, ebx
push 0x10
mov dword [esp + 0x48], ebx
call fcn.0045401f
add esp, 4
cmp eax, ebx
je 0x4051bd
mov dword [esp + 0x40], eax
mov dword [eax], eax
mov eax, dword [esp + 0x40]
mov dword [eax + 4], eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x19c], 2
call fcn.00403040
add esp, 4
cmp byte [0x51a500], bl
jne 0x4049ce
push 0xdc
call fcn.0045401f
add esp, 4
cmp eax, ebx
je 0x4049b8
call fcn.00402350
jmp 0x4049ba
xor eax, eax
mov esi, eax
mov dword [0x51a504], eax
mov byte [0x51a500], 1
mov dword [esp + 0x18], esi
jmp 0x4049da
mov ecx, dword [0x51a504]
mov dword [esp + 0x18], ecx
mov esi, ecx
mov eax, dword [edi + 0x8c]
push ecx
sub eax, 0x10
mov dword [esp + 0x68], ebx
mov dword [esp + 0x30], esp
mov dword [esp + 0x18], esp
call fcn.0041b370
mov edx, esp
add eax, 0x10
mov dword [edx], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.0040d0e0
cmp dword [esp + 0x64], ebx
je 0x405172
cmp dword [esp + 0x94], 2
jne 0x404aa5
push str._nLarge_option_cannot_be_used_simultaneously_with_QD_option_n_n
call fcn.00454df0
add esp, 4
lea ebx, [esp + 0x40]
mov byte [esp + 0x198], 3
call fcn.0040be00
mov edx, dword [esp + 0x40]
push edx
call fcn.00453bd6
add esp, 4
lea eax, [esp + 0x94]
call fcn.00402ae0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x198], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a81
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x8c]
push ecx
mov dword [esp + 0x18], esp
sub eax, 0x10
mov dword [esp + 0x98], 1
mov dword [esp + 0x7c], 0xfa
mov dword [esp + 0x18], esp
call fcn.0041b370
mov ecx, esp
add eax, 0x10
lea edx, [esp + 0x7c]
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
push edx
push eax
call fcn.0040d0e0
mov ecx, dword [esp + 0x78]
mov eax, dword [edi + 0x8c]
push ecx
mov dword [esp + 0x18], esp
sub eax, 0x10
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ebx
mov byte [esp + 0xa8], bl
mov dword [esp + 0x80], ebx
mov dword [esp + 0x18], esp
call fcn.0041b370
mov edx, esp
add eax, 0x10
mov dword [edx], eax
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.0040d0e0
cmp dword [esp + 0x7c], ebx
je 0x404b41
mov byte [esp + 0xa4], 1
lea edx, [esp + 0x28]
push edx
mov ecx, 0x4f3cb0
call fcn.0041b050
mov byte [esp + 0x198], 5
mov eax, dword [edi + 0x8c]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.0041b370
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ecx + 0x2c]
lea eax, [esp + 0x2c]
push eax
call fcn.0040d460
lea edx, [esp + 0x24]
push edx
mov ecx, 0x4f3c8c
call fcn.0041b050
mov byte [esp + 0x198], 6
mov eax, dword [edi + 0x8c]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.0041b370
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ecx + 0x28]
lea eax, [esp + 0x28]
push eax
call fcn.0040d460
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x198], 7
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x154]
call fcn.0041efc0
push 1
sub esp, 0x14
mov byte [esp + 0x1b0], 8
mov edx, 0x4decc4
mov eax, esp
mov dword [esp + 0x2c], esp
call fcn.0040d800
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040d840
add esp, 0x20
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x198], 0xa
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x138]
call fcn.0041efc0
push 1
sub esp, 0x14
mov byte [esp + 0x1b0], 0xb
mov dword [esp + 0x2c], esp
mov edx, 0x4f0e1c
mov eax, esp
call fcn.0040d800
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0040d840
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x20
add eax, edx
mov dword [esp + 0x14], ebx
je 0x404e80
xor esi, esi
jmp 0x404cb0
push 0xffffffffffffffff
xor ecx, ecx
push ebx
add edi, esi
mov word [esp + 0x120], cx
push edi
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], 7
mov dword [esp + 0x134], ebx
call fcn.00417690
mov byte [esp + 0x198], 0xc
cmp dword [esp + 0x12c], 8
mov eax, dword [esp + 0x118]
jae 0x404cfe
lea eax, [esp + 0x118]
mov edx, dword [esp + 0x128]
cmp word [eax + edx*2 - 2], 0x31
sete al
cmp al, bl
je 0x404e30
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jae 0x404e30
push 0xffffffffffffffff
xor ecx, ecx
lea eax, [esi + edi]
push ebx
mov word [esp + 0x174], cx
push eax
lea ecx, [esp + 0x178]
mov dword [esp + 0x18c], 7
mov dword [esp + 0x188], ebx
call fcn.00417690
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
push 1
sub esp, 0x14
mov byte [esp + 0x1b0], 0xe
mov edx, 0x4decc4
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.0040d800
lea edx, [esp + 0x184]
push edx
lea eax, [esp + 0x118]
push eax
call fcn.0040d840
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
add esp, 0x20
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.0040fae0
mov eax, dword [esp + 0xfc]
cmp eax, ebx
je 0x404e01
mov edi, dword [esp + 0x100]
call fcn.0040dc70
mov eax, dword [esp + 0xfc]
push eax
call fcn.00453bd6
add esp, 4
cmp dword [esp + 0x180], 8
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
jb 0x404e30
mov ecx, dword [esp + 0x16c]
push ecx
call fcn.00453bd6
add esp, 4
mov byte [esp + 0x198], 0xb
cmp dword [esp + 0x12c], 8
jb 0x404e52
mov edx, dword [esp + 0x118]
push edx
call fcn.00453bd6
add esp, 4
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
inc dword [esp + 0x14]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, 0x1c
cmp dword [esp + 0x14], eax
jb 0x404cb0
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
lea esp, [esp]
cmp esi, dword [esp + 0x14]
je 0x404f4d
push 0xffffffffffffffff
push ebx
xor edx, edx
push esi
lea ecx, [esp + 0x108]
mov dword [esp + 0x11c], 7
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], dx
call fcn.00417690
mov byte [esp + 0x198], 0xf
mov ecx, dword [esp + 0xfc]
mov edi, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
cmp dword [esp + 0x118], edi
jae 0x404eee
lea ecx, [esp + 0x104]
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041b050
lea ecx, [esp + 0xa0]
push ecx
call fcn.00401f30
mov byte [esp + 0x198], 0xb
cmp dword [esp + 0x110], edi
jb 0x404f29
mov edx, dword [esp + 0xfc]
push edx
call fcn.00453bd6
add esp, 4
xor eax, eax
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], ax
add esi, 0x1c
jmp 0x404e90
push ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 0x8c]
sub eax, 0x10
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.0041b370
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
lea edx, [esp + 0x30]
push edx
push ecx
call fcn.0040d0e0
cmp dword [esp + 0x2c], ebx
je 0x404f8f
mov byte [esp + 0xa6], 1
sub esp, 0x68
mov edx, esp
mov dword [esp + 0x84], esp
push edx
lea edi, [esp + 0x100]
mov byte [esp + 0x111], bl
call fcn.00402c60
mov esi, dword [esp + 0x88]
push ecx
mov eax, esi
mov byte [esp + 0x204], 0x10
mov dword [esp + 0xcc], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0xf0]
mov byte [esp + 0x204], 0xb
call fcn.00402650
cmp dword [esp + 0x148], 8
jb 0x405002
mov eax, dword [esp + 0x134]
push eax
call fcn.00453bd6
add esp, 4
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], cx
cmp eax, ebx
je 0x40503c
mov edi, dword [esp + 0x50]
call fcn.0040dc70
mov edx, dword [esp + 0x4c]
push edx
call fcn.00453bd6
add esp, 4
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
cmp eax, ebx
je 0x405066
mov edi, dword [esp + 0x6c]
call fcn.0040dc70
mov eax, dword [esp + 0x68]
push eax
call fcn.00453bd6
add esp, 4
cmp dword [esp + 0x164], 8
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
jb 0x40508c
mov ecx, dword [esp + 0x150]
push ecx
call fcn.00453bd6
add esp, 4
mov eax, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x164], 7
mov dword [esp + 0x160], ebx
mov word [esp + 0x150], dx
cmp eax, ebx
je 0x4050c6
mov edi, dword [esp + 0x34]
call fcn.0040dc70
mov eax, dword [esp + 0x30]
push eax
call fcn.00453bd6
add esp, 4
mov byte [esp + 0x198], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x198], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x40]
mov byte [esp + 0x198], 0x11
call fcn.0040be00
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00453bd6
add esp, 4
lea eax, [esp + 0x94]
call fcn.00402ae0
mov dword [esp + 0x198], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404a81
mov ecx, dword [esi]
push esi
jmp 0x404a7a
lea ebx, [esp + 0x40]
mov byte [esp + 0x198], 4
call fcn.0040be00
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00453bd6
add esp, 4
lea eax, [esp + 0x94]
call fcn.00402ae0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x198], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404a75
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x60], ebx
call fcn.004541b0
push 0x4ff0c0
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], vtable.std::bad_alloc.0
call fcn.00457e5a
int3