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

Disassembly:
push 0xffffffffffffffff
push 0x4f2221
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov bl, 4
mov cl, 0xa
mov al, 0x10
mov byte [esp + 0x25], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov byte [esp + 0x28], cl
mov cl, 9
push 6
mov dword [esp + 0x64], edi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 1
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0x40
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], 8
mov byte [esp + 0x32], 8
mov byte [esp + 0x33], 5
mov byte [esp + 0x34], 5
mov byte [esp + 0x35], 8
mov byte [esp + 0x36], 8
mov byte [esp + 0x37], 7
mov byte [esp + 0x38], 7
mov byte [esp + 0x39], 7
mov byte [esp + 0x3a], 7
mov byte [esp + 0x3b], 6
mov byte [esp + 0x3c], 6
mov byte [esp + 0x3d], 6
mov byte [esp + 0x3e], 5
mov byte [esp + 0x3f], 5
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 0
mov byte [esp + 0x47], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 1
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], al
mov byte [esp + 0x4c], 0x40
mov byte [esp + 0x4d], 1
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], al
mov byte [esp + 0x50], 0x40
mov byte [esp + 0x51], 1
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], al
mov byte [esp + 0x54], 0x40
mov byte [esp + 0x55], al
mov byte [esp + 0x56], 0x40
mov byte [esp + 0x57], 1
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], al
mov byte [esp + 0x5a], 0x40
mov byte [esp + 0x5b], 1
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], al
mov byte [esp + 0x5e], 1
mov byte [esp + 0x5f], bl
mov byte [esp + 0x60], 1
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], al
mov byte [esp + 0x63], 0x40
push 0x512a94
lea ecx, [esp + 0x1c]
call fcn.004bea10
xor ebp, ebp
push 6
push 0x512a8c
lea ecx, [esp + 0x18]
mov dword [esp + 0xd4], ebp
call fcn.004bea10
mov ecx, dword [edi + 0x88]
lea esi, [edi + 0x80]
push eax
push 1
push ecx
mov ecx, esi
mov byte [esp + 0xd8], 1
call fcn.004126e0
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 0
call fcn.004beab0
push 6
push 0x512a84
lea ecx, [esp + 0x18]
call fcn.004bea10
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
mov ecx, esi
mov byte [esp + 0xd8], 2
call fcn.004126e0
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 0
call fcn.004beab0
mov al, byte [edi + 0x44]
test al, al
je 0x49a545
jbe 0x49a245
cmp al, bl
ja 0x49a245
push 0xb
lea ecx, [edi + 0x78]
call fcn.004bec90
xor ecx, ecx
mov cl, byte [edi + 0x44]
push ecx
mov dl, byte [esp + ecx + 0x1c]
mov ecx, esp
test dl, al
je 0x49a0ec
mov dword [esp + 0x14], esp
push 6
push 0x512a7c
call fcn.004bea10
lea edx, [esp + 0x98]
push edx
call fcn.004d0560
add esp, 8
mov ecx, dword [0x4f73d0]
mov byte [esp + 0xcc], 5
push ecx
push ebp
push eax
lea ecx, [edi + 0x68]
call fcn.00411c90
mov eax, dword [esp + 0x98]
mov byte [esp + 0xcc], 0
cmp eax, ebp
je 0x49a0d2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49a0c9
cmp al, 0xff
je 0x49a0c9
dec al
mov byte [ecx], al
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
jmp 0x49a200
push ecx
call fcn.004deb10
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
jmp 0x49a200
mov dword [esp + 0x14], esp
push 6
push 0x512a74
call fcn.004bea10
lea edx, [esp + 0x68]
push edx
call fcn.004d0560
add esp, 8
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [0x4f73d0]
mov ebp, eax
mov byte [esp + 0xcc], 6
cmp ecx, ebp
lea ebx, [edi + 0x68]
jae 0x49a127
mov ebp, ecx
cmp ebx, esi
jne 0x49a144
push ecx
push ebp
mov ecx, ebx
call fcn.00412150
push 0
push 0
mov ecx, ebx
call fcn.00412150
jmp 0x49a1c5
test ebp, ebp
jbe 0x49a18c
cmp ebp, eax
jne 0x49a18c
mov eax, dword [esi + 4]
test eax, eax
jne 0x49a158
mov eax, 0x4f7480
cmp byte [eax - 1], 0xfe
jae 0x49a18c
push 1
mov ecx, ebx
call fcn.00411e90
mov eax, dword [esi + 4]
test eax, eax
jne 0x49a173
mov eax, 0x4f7480
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov esi, dword [esi + 0xc]
mov dword [ebx + 0xc], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x49a1c5
push 1
push ebp
mov ecx, ebx
call fcn.00412290
test al, al
je 0x49a1c5
mov esi, dword [esi + 4]
test esi, esi
jne 0x49a1a6
mov esi, 0x4f7480
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00412270
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
xor esi, esi
cmp eax, esi
mov byte [esp + 0xcc], 0
je 0x49a1f4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49a1eb
cmp al, 0xff
je 0x49a1eb
dec al
mov byte [ecx], al
jmp 0x49a1f4
push ecx
call fcn.004deb10
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
xor ecx, ecx
mov byte [edi + 0x46], 0
mov cl, byte [edi + 0x44]
mov dl, byte [esp + ecx + 0x18]
mov ecx, edi
mov byte [edi + 0x45], dl
call fcn.004a2cc0
test ax, ax
jge 0x49a239
lea ecx, [esp + 0x14]
mov dword [esp + 0xcc], 0xffffffff
call fcn.004beab0
or ax, 0xffff
jmp 0x49a6a4
mov ecx, edi
call fcn.004a2cc0
jmp 0x49a68b
and eax, 0xff
lea ecx, [edi + 0x78]
movzx ax, byte [esp + eax + 0x20]
push eax
call fcn.004bec90
xor ecx, ecx
mov cl, byte [edi + 0x44]
test byte [esp + ecx + 0x40], al
je 0x49a3b5
push ecx
mov byte [0x5201a9], 1
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x512a8c
call fcn.004bea10
lea edx, [esp + 0xb8]
push edx
call fcn.004d0560
add esp, 8
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [0x4f73d0]
mov ebx, eax
mov byte [esp + 0xcc], 7
cmp ecx, ebx
lea ebp, [edi + 0x68]
jae 0x49a2b0
mov ebx, ecx
cmp ebp, esi
jne 0x49a2cd
push ecx
push ebx
mov ecx, ebp
call fcn.00412150
push 0
push 0
mov ecx, ebp
call fcn.00412150
jmp 0x49a351
test ebx, ebx
jbe 0x49a315
cmp ebx, eax
jne 0x49a315
mov eax, dword [esi + 4]
test eax, eax
jne 0x49a2e1
mov eax, 0x4f7480
cmp byte [eax - 1], 0xfe
jae 0x49a315
push 1
mov ecx, ebp
call fcn.00411e90
mov eax, dword [esi + 4]
test eax, eax
jne 0x49a2fc
mov eax, 0x4f7480
mov dword [ebp + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebp + 8], ecx
mov esi, dword [esi + 0xc]
mov dword [ebp + 0xc], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x49a351
push 1
push ebx
mov ecx, ebp
call fcn.00412290
test al, al
je 0x49a351
mov esi, dword [esi + 4]
test esi, esi
jne 0x49a32f
mov esi, 0x4f7480
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x60]
mov dword [ebp + 8], ebx
add ebx, eax
mov byte [ebx], 0
mov eax, dword [esp + 0xb8]
xor esi, esi
cmp eax, esi
mov byte [esp + 0xcc], 0
je 0x49a39b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49a392
cmp al, 0xff
je 0x49a392
dec al
mov byte [ecx], al
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
jmp 0x49a52a
push ecx
call fcn.004deb10
add esp, 4
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
jmp 0x49a52a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x512a84
call fcn.004bea10
lea ecx, [esp + 0x88]
push ecx
call fcn.004d0560
add esp, 8
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [0x4f73d0]
mov ebp, eax
mov byte [esp + 0xcc], 8
cmp ecx, ebp
lea ebx, [edi + 0x68]
jae 0x49a3f6
mov ebp, ecx
cmp ebx, esi
jne 0x49a45e
mov eax, dword [ebx + 8]
mov esi, ecx
cmp eax, ebp
jae 0x49a408
call fcn.004ded47
mov ecx, ebx
call fcn.00412f70
mov eax, dword [ebx + 8]
sub eax, ebp
cmp eax, esi
jae 0x49a41a
mov esi, eax
test esi, esi
jbe 0x49a44e
mov edx, dword [ebx + 4]
sub eax, esi
add ebp, edx
push eax
lea ecx, [esi + ebp]
push ecx
push ebp
call fcn.004df480
mov ebp, dword [ebx + 8]
add esp, 0xc
sub ebp, esi
mov ecx, ebx
push 0
push ebp
call fcn.00412290
test al, al
je 0x49a44e
push ebp
mov ecx, ebx
call fcn.00412270
push 0
push 0
mov ecx, ebx
call fcn.00412150
jmp 0x49a4e3
test ebp, ebp
jbe 0x49a4a6
cmp ebp, eax
jne 0x49a4a6
mov eax, dword [esi + 4]
test eax, eax
jne 0x49a472
mov eax, 0x4f7480
cmp byte [eax - 1], 0xfe
jae 0x49a4a6
push 1
mov ecx, ebx
call fcn.00411e90
mov eax, dword [esi + 4]
test eax, eax
jne 0x49a48d
mov eax, 0x4f7480
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov esi, dword [esi + 0xc]
mov dword [ebx + 0xc], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x49a4e3
push 1
push ebp
mov ecx, ebx
call fcn.00412290
test al, al
je 0x49a4e3
mov esi, dword [esi + 4]
test esi, esi
jne 0x49a4c0
mov esi, 0x4f7480
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x60]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
mov eax, dword [esp + 0x88]
xor esi, esi
cmp eax, esi
mov byte [esp + 0xcc], 0
je 0x49a515
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49a50c
cmp al, 0xff
je 0x49a50c
dec al
mov byte [ecx], al
jmp 0x49a515
push ecx
call fcn.004deb10
add esp, 4
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
xor eax, eax
mov al, byte [edi + 0x44]
mov cl, byte [esp + eax + 0x40]
mov dl, byte [esp + eax + 0x20]
push ecx
push edx
mov ecx, edi
call fcn.004a30d0
jmp 0x49a68b
push 6
lea ecx, [edi + 0x78]
call fcn.004bec90
test al, 0x40
je 0x49a5f9
push ecx
mov byte [0x5201a9], 1
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x512a7c
call fcn.004bea10
lea eax, [esp + 0xa8]
push eax
call fcn.004d0560
add esp, 8
mov ecx, dword [0x4f73d0]
mov byte [esp + 0xcc], 3
push ecx
push ebp
push eax
lea ecx, [edi + 0x68]
call fcn.00411c90
mov eax, dword [esp + 0xa8]
mov byte [esp + 0xcc], 0
cmp eax, ebp
je 0x49a5e2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49a5d9
cmp al, 0xff
je 0x49a5d9
dec al
mov byte [ecx], al
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebp
jmp 0x49a66d
push ecx
call fcn.004deb10
add esp, 4
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebp
jmp 0x49a66d
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x512a74
call fcn.004bea10
lea edx, [esp + 0x78]
push edx
call fcn.004d0560
add esp, 8
mov ecx, dword [0x4f73d0]
mov byte [esp + 0xcc], bl
push ecx
push ebp
push eax
lea ecx, [edi + 0x68]
call fcn.00411c90
mov eax, dword [esp + 0x78]
mov byte [esp + 0xcc], 0
cmp eax, ebp
je 0x49a65e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x49a655
cmp al, 0xff
je 0x49a655
dec al
mov byte [ecx], al
jmp 0x49a65e
push ecx
call fcn.004deb10
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004be980
push 3
push 0x40
push 6
mov ecx, edi
call fcn.004a2e40
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xcc], 0xffffffff
call fcn.004beab0
mov ax, si
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc0
ret