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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d9c04
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
mov byte [esp + 0x23], bl
call fcn.004a7900
add esp, 8
mov dword [esp + 0x160], ebx
mov eax, dword [esp + 0x20]
cmp dword [eax], ebx
je 0x49e6bf
cmp dword [eax + 4], ebx
je 0x49e6bf
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov esi, 0xf
push eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040f1c0
mov byte [esp + 0x160], 1
push 1
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [ebx + 1]
call fcn.0049fca0
mov byte [esp + 0x160], 2
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov byte [esp + 0x160], 3
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0043e470
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0043f140
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x49e604
cmp dword [esp + 0x130], 0x10
mov ecx, dword [esp + 0x11c]
jae 0x49df6c
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x14]
push edx
call fcn.0040b670
mov byte [esp + 0x160], 4
push 0x6a15a0
lea eax, [esp + 0x18]
call fcn.0041c750
mov edi, eax
mov eax, 0x6a15a0
call fcn.00445d10
mov eax, dword [esp + 0x14]
push eax
call fcn.0059607d
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
mov esi, eax
call fcn.0041d3b0
mov byte [esp + 0x160], 5
push esi
lea ecx, [esp + 0x60]
call fcn.0049fe00
cmp esi, ebx
jbe 0x49e087
jmp 0x49dfd0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0043e470
movzx eax, al
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x120]
call fcn.0043f140
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx edx, al
add esp, 8
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0x49e07e
cmp dword [esp + 0x130], 0x10
jb 0x49e02e
mov eax, dword [esp + 0x11c]
mov edi, eax
cmp eax, ebx
jne 0x49e035
xor eax, eax
jmp 0x49e049
lea edi, [esp + 0x11c]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e040
sub eax, edx
push edi
mov edi, eax
lea eax, [esp + 0x18]
call fcn.0040f500
push 0x6a15a0
lea eax, [esp + 0x18]
call fcn.0041c750
mov edi, eax
mov eax, 0x6a15a0
call fcn.00445d10
lea ebx, [esp + 0x14]
lea edi, [esp + 0x5c]
call fcn.004388b0
xor ebx, ebx
sub esi, 1
jne 0x49dfd0
lea eax, [esp + 0x100]
push eax
call fcn.004a6b60
mov byte [esp + 0x160], 6
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0043e470
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0043f140
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x49e5c2
cmp dword [esp + 0x130], 0x10
jb 0x49e0fe
mov edx, dword [esp + 0x11c]
test edx, edx
jne 0x49e105
xor eax, eax
jmp 0x49e119
lea edx, [esp + 0x11c]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e110
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x18]
call fcn.0040f500
push 0x6a15a0
lea eax, [esp + 0x18]
call fcn.0041c750
mov edi, eax
mov eax, 0x6a15a0
call fcn.00445d10
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x49e577
push 0x6a15a4
push eax
call fcn.005959bc
add esp, 8
test eax, eax
je 0x49e577
sub eax, dword [esp + 0x14]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49e577
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.004453f0
mov byte [esp + 0x160], 7
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0049a0a0
add esp, 8
mov byte [esp + 0x160], 8
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
movzx eax, word [edx]
movzx esi, al
shr eax, 8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
sar eax, 2
cmp esi, eax
jb 0x49e1cb
call fcn.0059471a
mov ecx, dword [esp + 0x68]
mov edi, dword [ecx + esi*4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x49e1f9
cmp eax, dword [edi]
jne 0x49e1f9
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x49e22d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x49e739
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.005947c0
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x2c], esi
mov byte [esp + 0x160], 0xa
mov edx, dword [0x6e9718]
mov eax, dword [edx + 0xc]
mov ecx, 0x6e9718
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x160], 0xc
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x49e2dc
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x18]
lea edx, [ebx + 1]
push eax
call fcn.00445380
mov byte [esp + 0x160], 0xd
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49e2cb
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x49e2be
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49e2be
call fcn.0040f5a0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x49e2b5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x49e2cb
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.0040f500
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x40]
jmp 0x49e3c0
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x104]
call fcn.004a7020
mov byte [esp + 0x160], 0xf
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x49e3b4
lea ecx, [esp + 0x50]
push ecx
lea eax, [esp + 0x18]
lea edx, [ebx + 1]
push eax
call fcn.00445380
mov edi, eax
mov byte [esp + 0x160], 0x10
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00499710
mov byte [esp + 0x168], 0x11
lea ecx, [esp + 0x4c]
push 0x6a15a4
push ecx
mov ecx, eax
call fcn.0041c860
mov byte [esp + 0x170], 0x12
lea edx, [esp + 0x48]
push edi
push edx
mov ecx, eax
call fcn.0041c7b0
add esp, 0x18
mov byte [esp + 0x160], 0x13
lea ebx, [esp + 0x1c]
call fcn.0040d9a0
mov byte [esp + 0x160], 0x12
lea ecx, [esp + 0x38]
call fcn.0040b720
mov byte [esp + 0x160], 0x11
lea ecx, [esp + 0x44]
call fcn.0040b720
mov byte [esp + 0x160], 0x10
lea ecx, [esp + 0x4c]
call fcn.0040b720
mov byte [esp + 0x160], 0xf
lea ecx, [esp + 0x50]
call fcn.0040b720
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e3dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x49e4be
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
mov eax, dword [ecx]
mov edi, eax
mov dword [esp + 0x58], esi
test eax, eax
jne 0x49e72b
call fcn.0059471a
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x49e414
call fcn.0059471a
mov esi, dword [esi]
test edi, edi
jne 0x49e732
call fcn.0059471a
cmp esi, dword [edi + 0x14]
jne 0x49e42d
call fcn.0059471a
mov edx, dword [esp + 0x1c]
mov edi, dword [esi + 8]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00499810
mov esi, eax
mov bl, 0x15
mov byte [esp + 0x168], bl
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00499810
add esp, 0x10
mov byte [esp + 0x160], 0x16
mov edx, dword [edi]
push esi
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [esp + 0x160], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e4be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e4e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e50e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 7
mov eax, dword [esp + 0x24]
dec dword [eax + 8]
mov esi, eax
add eax, 8
xor edi, edi
cmp dword [eax], edi
jne 0x49e54f
cmp dword [esi + 4], edi
je 0x49e53e
mov eax, dword [esi]
push edi
push eax
call fcn.005967a8
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0043e470
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0043f140
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x49e0e5
xor ebx, ebx
mov byte [esp + 0x1b], 1
mov byte [esp + 0x160], 5
lea ecx, [esp + 0x100]
push ecx
call fcn.004a62c0
mov byte [esp + 0x160], 4
lea edx, [esp + 0x5c]
push edx
call fcn.0041d420
mov byte [esp + 0x160], 3
lea ecx, [esp + 0x14]
call fcn.0040b720
mov esi, 0xf
mov byte [esp + 0x160], 2
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x49e62a
mov eax, dword [esp + 0x11c]
push eax
call fcn.0059392f
add esp, 4
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
mov byte [esp + 0x160], 1
lea ecx, [esp + 0xc4]
call fcn.0049fd90
lea ecx, [esp + 0xc4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [esp + 0x160], 1
mov edx, ecx
push edx
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.0059276a
add esp, 4
mov byte [esp + 0x160], 0
cmp dword [esp + 0x14c], edi
jb 0x49e6a9
mov eax, dword [esp + 0x138]
push eax
call fcn.0059392f
add esp, 4
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x20]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x49e701
cmp dword [esi + 4], ebx
je 0x49e6f0
mov eax, dword [esi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x20], ebx
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax]
jmp 0x49e40a
mov edi, dword [edi]
jmp 0x49e423
call fcn.0040f590
int3