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

Disassembly:
push 0xffffffffffffffff
push 0x403bf4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
push ebx
push ebp
mov ebp, dword [esp + 0x494]
push esi
push edi
xor ebx, ebx
push ebp
mov dword [esp + 0x68], ebx
call fcn.0049e450
add esp, 4
test al, al
je 0x49e4f6
mov esi, dword [esp + 0x498]
mov al, byte [ebp]
push ebx
mov ecx, esi
mov byte [esi], al
call dword [fcn.004040a0]
mov ecx, dword [0x4040b4]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
push ebp
call dword [fcn.004040b0]
jmp 0x49ed35
call dword [0x404004]
mov esi, eax
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call dword [fcn.004040a0]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x5c]
call dword [0x4040d4]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x78]
push ecx
push edx
mov dword [esp + 0x498], ebx
call fcn.0049e2c0
mov cl, byte [0x40420b]
lea edx, [esp + 0x70]
push ecx
push eax
push edx
mov byte [esp + 0x4a4], 1
call fcn.004a0128
push ebp
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x4ac], 2
push eax
call fcn.004a0122
add esp, 0x20
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x494], 6
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x494], 5
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x494], 4
call dword [fcn.004040a0]
lea ecx, [esp + 0x14]
push ecx
call fcn.0049e450
add esp, 4
test al, al
je 0x49e605
mov esi, dword [esp + 0x498]
mov dl, byte [esp + 0x14]
push ebx
mov ecx, esi
mov byte [esi], dl
call dword [fcn.004040a0]
mov eax, dword [0x4040b4]
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, esi
call dword [fcn.004040b0]
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x494], 0xffffffff
call dword [fcn.004040a0]
jmp 0x49ed35
lea eax, [esp + 0x88]
push eax
push 0x400
call dword [0x404018]
cmp eax, ebx
jne 0x49e634
mov esi, dword [esp + 0x498]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esi], cl
mov ecx, esi
call dword [fcn.004040a0]
jmp 0x49e5e9
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call dword [fcn.004040a0]
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x88]
push ecx
push eax
lea ecx, [esp + 0x2c]
call dword [0x4040d4]
mov cl, byte [0x40420b]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov byte [esp + 0x49c], 7
call fcn.004a0128
push ebp
lea ecx, [esp + 0x44]
mov bl, 8
push eax
push ecx
mov byte [esp + 0x4a8], bl
call fcn.004a0122
add esp, 0x18
mov edx, dword [0x4040b4]
mov byte [esp + 0x490], 9
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x20]
call dword [fcn.004040b0]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x494], bl
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 7
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x494], 4
call dword [fcn.004040a0]
lea edx, [esp + 0x14]
push edx
call fcn.0049e450
add esp, 4
test al, al
je 0x49e737
mov esi, dword [esp + 0x498]
mov al, byte [esp + 0x14]
push 0
mov ecx, esi
mov byte [esi], al
call dword [fcn.004040a0]
mov ecx, dword [0x4040b4]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push edx
push 0
push eax
jmp 0x49e5e1
lea ecx, [esp + 0x88]
push 0x400
push ecx
call dword [0x404014]
test eax, eax
jne 0x49e769
mov esi, dword [esp + 0x498]
mov dl, byte [esp + 0x13]
push eax
mov ecx, esi
mov byte [esi], dl
call dword [fcn.004040a0]
jmp 0x49e5e9
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call dword [fcn.004040a0]
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x2c]
call dword [0x4040d4]
mov dl, byte [0x40420b]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x49c], 0xa
call fcn.004a0128
push ebp
lea edx, [esp + 0x44]
mov bl, 0xb
push eax
push edx
mov byte [esp + 0x4a8], bl
call fcn.004a0122
add esp, 0x18
mov ecx, dword [0x4040b4]
mov byte [esp + 0x490], 0xc
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [fcn.004040b0]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x494], bl
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 0xa
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x494], 4
call dword [fcn.004040a0]
lea eax, [esp + 0x14]
push eax
call fcn.0049e450
add esp, 4
test al, al
je 0x49e86d
mov esi, dword [esp + 0x498]
mov cl, byte [esp + 0x14]
push 0
mov byte [esi], cl
mov ecx, esi
call dword [fcn.004040a0]
mov edx, dword [0x4040b4]
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push eax
push 0
push ecx
jmp 0x49e5e1
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
mov al, byte [0x40420d]
sub edx, 2
not ecx
dec ecx
push 0
mov byte [ecx + edx], al
mov cl, byte [esp + 0x17]
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call dword [fcn.004040a0]
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call dword [0x4040d4]
mov al, byte [0x40420b]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x49c], 0xd
call fcn.004a0128
push ebp
push eax
lea eax, [esp + 0x48]
mov bl, 0xe
push eax
mov byte [esp + 0x4a8], bl
call fcn.004a0122
add esp, 0x18
mov ecx, dword [0x4040b4]
mov byte [esp + 0x490], 0xf
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [fcn.004040b0]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x494], bl
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 0xd
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x494], 4
call dword [fcn.004040a0]
lea eax, [esp + 0x14]
push eax
call fcn.0049e450
add esp, 4
test al, al
je 0x49e993
mov esi, dword [esp + 0x498]
mov cl, byte [esp + 0x14]
push 0
mov byte [esi], cl
mov ecx, esi
call dword [fcn.004040a0]
mov edx, dword [0x4040b4]
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push eax
push 0
push ecx
jmp 0x49e5e1
lea edx, [esp + 0x88]
push 0x400
push edx
call dword [0x404010]
test eax, eax
jne 0x49e9c6
mov esi, dword [esp + 0x498]
mov al, byte [esp + 0x13]
push 0
mov ecx, esi
mov byte [esi], al
call dword [fcn.004040a0]
jmp 0x49e5e9
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call dword [fcn.004040a0]
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call dword [0x4040c4]
test al, al
je 0x49ea24
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call dword [0x4040bc]
mov al, byte [0x40420b]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x49c], 0x10
call fcn.004a0128
mov ecx, dword [esp + 0x4a8]
lea edx, [esp + 0x40]
push ecx
mov bl, 0x11
push eax
push edx
mov byte [esp + 0x4a8], bl
call fcn.004a0122
add esp, 0x18
mov ecx, dword [0x4040b4]
mov byte [esp + 0x490], 0x12
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [fcn.004040b0]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x494], bl
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x494], 0x10
call dword [fcn.004040a0]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x494], 4
call dword [fcn.004040a0]
lea eax, [esp + 0x14]
push eax
call fcn.0049e450
add esp, 4
test al, al
je 0x49eaf6
mov esi, dword [esp + 0x498]
mov cl, byte [esp + 0x14]
push 0
mov byte [esi], cl
mov ecx, esi
call dword [fcn.004040a0]
mov edx, dword [0x4040b4]
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push eax
push 0
push ecx
jmp 0x49e5e1
lea edx, [esp + 0x88]
push 0x400
push edx
push 0x404204
call dword [0x40400c]
mov cl, byte [esp + 0x88]
xor eax, eax
test cl, cl
je 0x49ecc4
lea esi, [esp + 0x88]
mov cl, byte [0x40420c]
mov dl, byte [0x40420d]
mov ebx, eax
mov al, byte [esi]
cmp al, cl
je 0x49eb4a
cmp al, dl
je 0x49eb4a
mov al, byte [esp + ebx + 0x89]
inc ebx
cmp al, cl
jne 0x49eb3a
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + ebx + 0x8c], dl
mov byte [esp + 0x28], al
call dword [fcn.004040a0]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call dword [0x4040c4]
test al, al
je 0x49eba4
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], 0
mov cl, byte [0x40420b]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x49c], 0x13
call fcn.004a0128
mov ecx, dword [esp + 0x4a8]
lea edx, [esp + 0x50]
push ecx
push eax
push edx
mov byte [esp + 0x4a8], 0x14
call fcn.004a0122
add esp, 0x18
mov ecx, dword [0x4040b4]
xor edi, edi
mov byte [esp + 0x490], 0x15
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push edi
push eax
call dword [fcn.004040b0]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x49ec24
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49ec1b
cmp al, 0xff
je 0x49ec1b
dec al
mov byte [ecx], al
jmp 0x49ec24
push ecx
call fcn.004a0110
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], edi
cmp eax, edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
je 0x49ec55
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49ec4c
cmp al, 0xff
je 0x49ec4c
dec al
mov byte [ecx], al
jmp 0x49ec55
push ecx
call fcn.004a0110
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], edi
cmp eax, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x490], 4
je 0x49ec8e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49ec85
cmp al, 0xff
je 0x49ec85
dec al
mov byte [ecx], al
jmp 0x49ec8e
push ecx
call fcn.004a0110
add esp, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0049e450
add esp, 4
test al, al
jne 0x49ecf6
lea eax, [ebx + 1]
mov cl, byte [esp + eax + 0x88]
lea esi, [esp + eax + 0x88]
test cl, cl
jne 0x49eb26
mov esi, dword [esp + 0x498]
mov dl, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov byte [esi], dl
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, eax
je 0x49ed35
mov al, byte [ecx - 1]
test al, al
je 0x49ed2b
cmp al, 0xff
je 0x49ed2b
dec al
mov byte [ecx - 1], al
jmp 0x49ed35
mov esi, dword [esp + 0x498]
mov cl, byte [esp + 0x14]
mov byte [esi], cl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov edx, dword [0x4040b4]
lea ecx, [esp + 0x14]
mov eax, dword [edx]
push eax
push edi
push ecx
mov ecx, esi
call dword [fcn.004040b0]
mov ecx, dword [esp + 0x18]
cmp ecx, edi
jmp 0x49ece2
dec ecx
push ecx
call fcn.004a0110
add esp, 4
mov ecx, dword [esp + 0x488]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x484
ret