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

Disassembly:
push 0xffffffffffffffff
push 0x507732
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x114]
mov ebx, dword [esp + 0x110]
mov ebp, dword [esp + 0x10c]
xor edi, edi
cmp ebx, edi
je 0x49db5c
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x64]
push ecx
push ebx
call edx
test eax, eax
je 0x49db5c
cmp dword [esp + 0x7c], 1
jne 0x49d79c
or dword [ebp + 0x58], 4
mov eax, dword [ebx]
mov ecx, dword [eax + 0x7c]
push 0x50fe14
push ebx
call ecx
add eax, 4
push eax
call fcn.004e4707
mov edx, dword [0x563288]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
mov dword [esp + 0x1c], edi
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x104], edi
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x49d7ed
call fcn.004e48f7
mov ebp, dword [esi]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x49d804
call fcn.004e48f7
mov esi, dword [esi]
test ebp, ebp
je 0x49d80e
cmp ebp, esi
je 0x49d813
call fcn.004e48f7
cmp dword [esp + 0x28], edi
je 0x49da28
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49d8ca
call fcn.004e48f7
xor eax, eax
mov esi, dword [esp + 0x28]
cmp esi, dword [eax + 0x10]
jb 0x49d83e
call fcn.004e48f7
cmp dword [esi + 0xc], 0
jne 0x49d9a1
cmp dword [esp + 0x34], 0
jne 0x49d9a1
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49d8d1
call fcn.004e48f7
xor eax, eax
mov esi, dword [esp + 0x28]
cmp esi, dword [eax + 0x10]
jb 0x49d870
call fcn.004e48f7
mov eax, dword [esi]
sub eax, 0x10
call fcn.004048c0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esi - 0x10]
mov byte [esp + 0x104], 1
call fcn.004048c0
lea ebp, [eax + 0x10]
mov dword [esp + 0x40], ebp
push 0x5c
push esi
mov byte [esp + 0x10c], 2
call fcn.004e5c9d
add esp, 8
test eax, eax
je 0x49d8ba
sub eax, esi
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x49d8d5
push 0x512624
lea eax, [esp + 0x18]
call fcn.00429240
jmp 0x49d8e6
mov eax, dword [eax]
jmp 0x49d830
mov eax, dword [eax]
jmp 0x49d862
mov eax, dword [esi - 0xc]
sub eax, ecx
push ecx
lea ecx, [esp + 0x18]
inc eax
push ecx
call fcn.00427480
mov ecx, dword [esp + 0x10c]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x28]
push eax
push ecx
mov edx, esi
mov edi, ebx
mov dword [esp + 0x28], 0
call fcn.0049e260
lea edi, [esp + 0x2c]
mov byte [esp + 0x104], 3
call fcn.00404930
mov byte [esp + 0x104], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49d947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
je 0x49d958
cmp dword [esp + 0x18], 0
jne 0x49d9d7
add ebp, 0xfffffff0
mov byte [esp + 0x104], 1
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x49d97d
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x104], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d9a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49d9d3
call fcn.004e48f7
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x49d9be
call fcn.004e48f7
add dword [esp + 0x28], 0x1c
mov esi, dword [esp + 0x114]
mov ebp, dword [esp + 0x24]
jmp 0x49d7f7
mov eax, dword [eax]
jmp 0x49d9b0
add ebp, 0xfffffff0
mov dword [esp + 0x1c], 1
mov byte [esp + 0x104], 1
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x49da04
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x104], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49da28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x10c]
mov ecx, dword [ebp + 0x78]
add ebp, 0x78
cmp dword [ecx - 0xc], 0
jne 0x49dbba
mov edx, dword [ebx]
mov eax, dword [edx + 0x74]
push ebx
call eax
test eax, eax
jne 0x49da4f
xor ecx, ecx
jmp 0x49da63
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x49da54
sub ecx, esi
sar ecx, 1
push ecx
push eax
mov eax, ebp
call fcn.00401560
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jne 0x49dbba
cmp dword [esp + 0x1c], 0
je 0x49dbba
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004048c0
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x104], 4
cmp dword [esi - 0xc], 0
jne 0x49db02
mov ecx, dword [esp + 0x10c]
push 0
push 0
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0049e050
lea edi, [esp + 0x14]
mov byte [esp + 0x104], 5
call fcn.00404930
mov byte [esp + 0x104], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49daf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
je 0x49db96
lea eax, [esp + 0x84]
call fcn.0040a880
mov ecx, dword [esp + 0x10c]
mov byte [esp + 0x104], 6
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
add ecx, 4
call eax
push eax
lea edi, [esp + 0x88]
call fcn.00410c20
cmp eax, 2
jne 0x49db63
mov ecx, edi
push ecx
mov byte [esp + 0x108], 4
call fcn.0040a8d0
lea ecx, [esp + 0x14]
call fcn.004016f0
lea ecx, [esp + 0x2c]
call fcn.004016f0
xor eax, eax
jmp 0x49e02d
mov eax, dword [esp + 0xe8]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x78]
push eax
push ebx
call ecx
lea eax, [esp + 0xe8]
mov edi, ebp
call fcn.00404930
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x108], 4
call fcn.0040a8d0
lea eax, [esi - 0x10]
mov byte [esp + 0x104], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dbba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x114]
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x49dbce
call fcn.004e48f7
mov eax, dword [edi]
test eax, eax
jne 0x49dde0
call fcn.004e48f7
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x49dbe9
call fcn.004e48f7
cmp dword [esi + 0x18], 0
jl 0x49dc00
mov ecx, dword [esp + 0x10c]
mov dword [ecx + 0xb4], 0xfde9
mov edx, dword [ebx]
mov eax, dword [edx + 0x6c]
push ebx
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00401640
mov byte [esp + 0x104], 7
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
lea edx, [esp + 0x24]
push 0xf4
push edx
mov byte [esp + 0x110], 8
call fcn.00433510
add esp, 4
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x515654
push eax
push ecx
mov byte [esp + 0x118], 9
call fcn.00404510
add esp, 0xc
mov edx, dword [esp + 0x114]
push edx
mov byte [esp + 0x110], 0xa
call fcn.0049e9b0
mov byte [esp + 0x104], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dca8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x44]
push edx
push ebx
call eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.00401640
mov byte [esp + 0x104], 0xb
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
jne 0x49dce9
call fcn.004e48f7
mov edx, dword [esp + 0x114]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x10c]
mov edx, dword [esi + 4]
mov edi, dword [ebx]
add esi, 4
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x18]
mov ecx, esi
add edi, 0x38
call eax
mov ecx, dword [esp + 0x10c]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x10]
add ecx, 0xc
push ecx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esi]
add ecx, 0x58
push ecx
push ebp
push edx
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push eax
mov eax, dword [edi]
push ebx
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x7c]
push ebx
mov esi, eax
call edx
mov ecx, eax
lea eax, [esp + 0x38]
add ecx, 4
push eax
call fcn.00401640
mov byte [esp + 0x104], 0xc
test esi, esi
je 0x49dde7
mov ecx, dword [esp + 0x38]
push 0x50fdbc
push ecx
call fcn.004e4707
add esp, 8
test eax, eax
jne 0x49ddb6
mov edx, dword [ebx]
mov eax, dword [edx + 0x90]
push ebx
call eax
test eax, eax
jne 0x49ddb6
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
je 0x49ddb6
mov ecx, dword [esp + 0x10c]
mov edx, dword [ecx + 0x80]
cmp dword [edx - 0xc], 0
jne 0x49ddb6
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x48]
push eax
push ebx
call edx
mov edx, dword [esp + 0x10c]
cmp dword [edx + 0x12c], 0
je 0x49df88
call fcn.00492130
lea eax, [esp + 0x30]
push eax
push 1
call fcn.004945f0
jmp 0x49df88
mov eax, dword [eax]
jmp 0x49dbdf
cmp dword [esp + 0x1c], 0
je 0x49ddfb
mov eax, dword [ebx]
mov ecx, dword [eax + 0x78]
push 0x510130
push ebx
call ecx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x50]
lea edx, [esp + 0x48]
push edx
push ebx
call eax
cmp dword [esp + 0x48], 0
jle 0x49df88
cmp dword [esp + 0x50], 0x67
je 0x49df88
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x104], 0xd
mov ecx, dword [esp + 0x50]
push ecx
push str.compress_failed_d
lea edi, [esp + 0x24]
call fcn.00404890
add esp, 8
lea edx, [esp + 0x14]
push edx
mov ecx, str.main
call fcn.00401640
lea eax, [esp + 0x18]
mov bl, 0xe
push eax
mov ecx, 0x510ba4
mov byte [esp + 0x108], bl
call fcn.00401640
mov byte [esp + 0x104], 0xf
cmp dword [0x565350], 0
je 0x49dea5
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00404930
mov byte [esp + 0x104], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49decc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x104], 0xd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49def4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x510ba8
call fcn.00401640
mov byte [esp + 0x104], 0x10
cmp dword [0x565350], 0
je 0x49df2e
lea edx, [esp + 0x18]
push edx
mov edi, 0x565380
call fcn.004256f0
mov edi, eax
lea eax, [esp + 0x1c]
call fcn.00404930
mov byte [esp + 0x104], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49df56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x565350
call fcn.004c9ff0
mov byte [esp + 0x104], 0xc
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 0x49df88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x104], 0xb
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dfb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x104], 7
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 0x49dfd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x104], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e000
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x104], 0xffffffff
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 0x49e02b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0xc