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

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, dword [esp + 0xd4]
push ebp
mov ebp, dword [ebx + 0x40]
push esi
push edi
mov edi, dword [ebx + 0x4c]
mov eax, dword [edi + 0x44]
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], edi
call fcn.004b03d0
movzx ecx, word [ebp + 0x14]
lea edx, [ecx - 8]
mov eax, 0x55555556
imul edx
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + 0xc]
lea ecx, [ecx + eax*2]
add ecx, eax
shl ecx, 3
push ecx
call fcn.00492040
mov ecx, eax
add esp, 8
test ecx, ecx
mov dword [esp + 0x3c], ecx
jne 0x499e13
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0xcc
ret
lea eax, [esi + esi*2 + 6]
shl eax, 2
add ecx, eax
add eax, ecx
mov dword [esp + 0x20], ecx
movzx ecx, word [ebp + 0x14]
mov dword [esp + 0x5c], eax
lea eax, [ecx + eax + 0x50]
lea edx, [eax + ecx + 0x50]
mov dword [esp + 0x60], eax
mov eax, edx
lea ecx, [ecx + eax + 0x50]
mov al, byte [edi + 1]
test al, al
mov dword [esp + 0x64], edx
mov dword [esp + 0x48], ecx
je 0x499e9c
movzx eax, word [edi + 0x14]
mov edx, dword [ebx + 0x48]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], edx
jle 0x499ea0
movzx ecx, word [edi + 0xe]
mov esi, dword [edi + 0x44]
xor eax, eax
mov ah, byte [esi + ecx]
xor edx, edx
mov al, byte [esi + ecx + 1]
mov dh, byte [eax + esi]
add eax, esi
mov dl, byte [eax + 1]
movzx esi, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
cmp edx, dword [esp + 0x14]
je 0x499ea0
movzx eax, word [edi + 0x14]
inc ebx
add ecx, 2
cmp ebx, eax
jl 0x499e60
jmp 0x499ea0
movzx ebx, word [ebx + 0x10]
mov ecx, dword [edi + 0x44]
xor esi, esi
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
call fcn.004af5b0
movzx ecx, word [edi + 0x14]
lea eax, [ebx - 1]
lea edx, [eax + 3]
add esp, 4
cmp edx, ecx
mov dword [esp + 0x30], eax
jle 0x499ecf
lea eax, [ecx - 2]
mov dword [esp + 0x30], eax
test eax, eax
jge 0x499ed9
xor eax, eax
mov dword [esp + 0x30], eax
lea ecx, [eax + eax]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
movzx ecx, word [edi + 0x14]
cmp eax, ecx
jge 0x499f25
mov ebx, dword [esp + 0x1c]
lea ecx, [esi*4]
mov esi, dword [edi + 0x44]
mov dword [esp + ecx + 0x70], eax
movzx eax, word [edi + 0xe]
add eax, esi
movzx edx, byte [eax + ebx + 1]
mov dh, byte [eax + ebx]
add eax, ebx
mov dword [esp + 0x24], ecx
lea eax, [edx + esi]
mov dword [esp + ecx + 0x90], eax
lea ecx, [esp + ecx + 0xb0]
jmp 0x499f44
jne 0x49a00f
movzx ecx, byte [edi + 8]
mov edx, dword [edi + 0x44]
shl esi, 2
lea eax, [ecx + edx + 8]
mov dword [esp + 0x24], esi
lea ecx, [esp + esi + 0xb0]
movzx esi, byte [eax + 2]
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov esi, edx
test esi, esi
mov dword [ecx], edx
je 0x49a005
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
call fcn.004b07b0
add esp, 0xc
test eax, eax
jne 0x499fb9
movzx ebx, word [ebp + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add ebx, eax
mov dword [ebx + 0x44], eax
cmp esi, 1
setne al
dec al
mov dword [ebx + 0x40], ebp
mov dword [ebx + 0x48], esi
mov dword [esp + ecx + 0x50], ebx
and eax, 0x64
mov byte [ebx + 8], al
mov cl, byte [ebx]
xor eax, eax
test cl, cl
jne 0x499fb9
push edi
call fcn.00497b00
add esp, 4
test eax, eax
mov esi, eax
jne 0x49a6d0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + ecx + 0x50]
mov ebp, dword [esp + 0x40]
mov word [edx + 0x10], ax
mov edx, dword [esp + 0x1c]
mov dword [esp + ecx + 0xa4], esi
mov esi, dword [esp + 0x18]
inc esi
add edx, 2
inc eax
cmp esi, 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
jge 0x49a00f
mov edi, dword [esp + 0x2c]
jmp 0x499ee4
mov esi, 0xb
jmp 0x49a6d0
xor edx, edx
test esi, esi
jle 0x49a068
jmp 0x49a020
movzx ecx, word [ebp + 0x14]
mov eax, dword [esp + edx*4 + 0x5c]
mov esi, dword [esp + edx*4 + 0x50]
add eax, ecx
mov edi, eax
sub edi, ecx
mov dword [eax + 0x44], edi
movzx ecx, word [ebp + 0x14]
mov esi, dword [esi + 0x44]
add ecx, 0x50
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebp + 0x14]
mov esi, eax
sub esi, ecx
mov dword [esp + edx*4 + 0xa4], eax
mov dword [eax + 0x44], esi
mov eax, dword [esp + 0x18]
inc edx
cmp edx, eax
jl 0x49a020
mov edx, dword [esp + 0xe0]
mov cl, byte [edx + 4]
movzx eax, cl
shl eax, 2
mov dword [esp + 0x4c], eax
mov al, byte [edx + 6]
xor ebp, ebp
test al, al
mov dword [esp + 0x24], ebp
je 0x49a095
test cl, cl
mov dword [esp + 0x1c], 1
jne 0x49a099
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
jle 0x49a246
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + edx*4 + 0xa4]
movzx eax, word [ebx + 0x14]
movzx edx, byte [ebx + 2]
mov ecx, dword [esp + 0x20]
add eax, edx
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0
jle 0x49a163
mov eax, dword [esp + 0x3c]
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
lea edi, [ecx + ebp*4]
add ebp, eax
mov dword [esp + 0x24], ebp
jmp 0x49a0f0
movzx eax, byte [ebx + 2]
dec eax
mov esi, dword [esp + 0x38]
js 0x49a117
lea ecx, [ebx + eax*8 + 0x18]
nop
movzx edx, word [ecx + 4]
cmp edx, esi
jg 0x49a10f
je 0x49a1b4
dec esi
dec eax
sub ecx, 8
test eax, eax
jge 0x49a100
movzx ecx, word [ebx + 0xe]
mov eax, dword [ebx + 0x44]
add ecx, eax
movzx edx, byte [ecx + esi*2 + 1]
mov dh, byte [ecx + esi*2]
lea esi, [ecx + esi*2]
add eax, edx
mov ecx, dword [esp + 0x34]
push eax
push ebx
lea esi, [esp + 0xc4]
mov dword [ecx + edi], eax
call fcn.00497570
movzx edx, word [esp + 0xde]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [edi], edx
add edi, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x49a0f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
jge 0x49a231
mov eax, ecx
mov edi, dword [esp + eax*4 + 0x90]
mov ecx, dword [esp + 0x2c]
push edi
push ecx
lea esi, [esp + 0x78]
call fcn.00497570
mov ecx, dword [esp + 0x24]
movzx eax, word [esp + 0x92]
add esp, 8
test ecx, ecx
je 0x49a1bb
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push edx
mov ecx, eax
call fcn.00499b20
add esp, 4
jmp 0x49a231
mov eax, dword [ecx]
jmp 0x49a12d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dword [ecx + ebp*4], eax
mov ecx, dword [esp + 0x44]
add edx, ecx
add ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, eax
mov ebp, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
add edx, edi
mov dword [ecx + ebp*4], edx
mov edx, dword [esp + 0x30]
push edx
mov ecx, eax
call fcn.00499b20
mov eax, dword [esp + 0x24]
sub dword [eax + ebp*4], edi
mov al, byte [ebx + 4]
add esp, 4
test al, al
jne 0x49a22c
movzx eax, byte [ebx + 8]
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + ebp*4]
mov eax, dword [eax + ecx + 8]
mov dword [edx], eax
inc ebp
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x49a0a7
mov ecx, dword [esp + 0x40]
movzx edx, word [ecx + 0x16]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
lea esi, [edx + eax - 0xc]
xor ecx, ecx
xor ebp, ebp
xor eax, eax
test ebx, ebx
jle 0x49a299
mov edi, dword [esp + 0x1c]
jmp 0x49a270
mov edx, dword [esp + 0x20]
mov edx, dword [edx + ecx*4]
lea eax, [eax + edx + 2]
cmp eax, esi
jle 0x49a294
sub eax, edx
test edi, edi
mov dword [esp + ebp*4 + 0x70], eax
mov dword [esp + ebp*4 + 0x90], ecx
je 0x49a291
dec ecx
xor eax, eax
inc ebp
inc ecx
cmp ecx, ebx
jl 0x49a270
inc ebp
mov dword [esp + ebp*4 + 0x6c], eax
mov dword [esp + ebp*4 + 0x8c], ebx
lea edi, [ebp - 1]
test edi, edi
mov dword [esp + 0x34], ebp
jle 0x49a31d
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + edi*4 + 0x70]
mov esi, dword [esp + edi*4 + 0x6c]
mov eax, dword [esp + edi*4 + 0x8c]
mov ebp, dword [esp + 0x1c]
dec eax
mov ecx, eax
sub ecx, ebp
inc ecx
test edx, edx
je 0x49a2e8
mov ebp, esi
sub ebp, dword [ebx + eax*4]
mov ebx, dword [ebx + ecx*4]
sub ebp, 2
lea ebx, [ebx + edx + 2]
cmp ebx, ebp
jg 0x49a30c
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + ecx*4]
mov ebp, dword [ebx + eax*4]
mov eax, dword [esp + edi*4 + 0x8c]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, ebp
add esi, ecx
dec eax
mov dword [esp + edi*4 + 0x8c], eax
jmp 0x49a2bc
mov dword [esp + edi*4 + 0x70], edx
mov dword [esp + edi*4 + 0x6c], esi
dec edi
test edi, edi
jg 0x49a2b0
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0xe0]
mov eax, dword [edx + 0x44]
movzx ecx, byte [eax]
xor edi, edi
test ebp, ebp
mov dword [esp + 0x38], ecx
jle 0x49a3aa
cmp edi, dword [esp + 0x18]
jge 0x49a367
mov esi, dword [esp + edi*4 + 0x50]
mov eax, dword [esi + 0x44]
mov edx, dword [esp + edi*4 + 0xb0]
push eax
mov dword [esp + edi*4 + 0x74], esi
mov dword [esp + 0x18], esi
mov dword [esp + edi*4 + 0x60], edx
mov dword [esp + edi*4 + 0x54], 0
call fcn.004b03d0
add esp, 4
jmp 0x49a394
mov ecx, dword [esp + edi*4 + 0x58]
mov ebx, dword [esp + 0x40]
lea eax, [esp + edi*4 + 0x5c]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004991f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49a6d0
mov esi, dword [esp + 0x14]
mov dword [esp + edi*4 + 0x70], esi
inc dword [esp + 0x28]
mov eax, dword [esp + 0x38]
push eax
call fcn.00497c70
add esp, 4
inc edi
cmp edi, ebp
jl 0x49a334
cmp edi, dword [esp + 0x18]
jge 0x49a3e8
mov ebx, dword [esp + edi*4 + 0x50]
push ebx
call fcn.004994d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49a6d0
test ebx, ebx
je 0x49a3d7
mov ecx, dword [ebx + 0x44]
push ecx
call fcn.004b0350
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + edi*4 + 0x50], 0
inc edi
cmp edi, eax
jl 0x49a3b0
lea ecx, [ebp - 1]
xor eax, eax
test ecx, ecx
jle 0x49a45a
lea ecx, [esp + eax*4 + 0x5c]
mov dword [esp + 0x34], ecx
mov ecx, dword [ecx]
lea ebx, [eax + 1]
cmp ebx, ebp
mov dword [esp + 0x14], ecx
mov esi, ecx
mov edx, eax
mov dword [esp + 0x40], ebx
mov ecx, ebx
jge 0x49a451
mov edi, dword [esp + ecx*4 + 0x5c]
cmp edi, esi
jae 0x49a41c
mov edx, ecx
mov esi, edi
inc ecx
cmp ecx, ebp
jl 0x49a410
cmp edx, eax
jle 0x49a451
mov edi, dword [esp + edx*4 + 0x5c]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + eax*4 + 0x70]
lea ecx, [esp + edx*4 + 0x5c]
lea eax, [esp + eax*4 + 0x70]
mov dword [ebx], edi
mov edi, dword [esp + edx*4 + 0x70]
mov ebx, dword [esp + 0x40]
lea edx, [esp + edx*4 + 0x70]
mov dword [eax], edi
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [edx], esi
mov eax, ebx
lea ecx, [ebp - 1]
cmp eax, ecx
jl 0x49a3f1
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x49a5eb
mov ebx, dword [esp + 0x3c]
mov ecx, eax
dec ecx
mov dword [esp + 0x34], ecx
jmp 0x49a480
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + eax*4 + 0x70]
mov esi, dword [esp + eax*4 + 0x90]
mov edx, dword [esp + 0x20]
lea eax, [edx + edi*4]
push eax
lea ecx, [ebx + edi*4]
push ecx
mov edx, esi
sub edx, edi
push edx
push ebp
call fcn.00499cc0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
mov edi, esi
jge 0x49a5d6
cmp edi, dword [esp + 0x24]
jge 0x49a5d6
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + edi*4]
mov edx, dword [esp + 0x4c]
mov al, byte [ebp + 4]
mov esi, dword [ebx + edi*4]
add ecx, edx
test al, al
mov dword [esp + 0x14], ecx
jne 0x49a4ec
mov eax, dword [esi]
mov edx, dword [ebp + 0x44]
mov dword [edx + 8], eax
xor eax, eax
jmp 0x49a55c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49a549
mov ecx, dword [ebx + edi*4 - 4]
dec edi
push ecx
push ebp
lea esi, [esp + 0xc4]
call fcn.00497570
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
push 0
push 0
push ecx
lea esi, [edx + ebx]
mov edx, dword [esp + 0xdc]
push edx
push 0
push esi
push eax
call fcn.004997e0
mov ecx, dword [esp + 0x3c]
add ebx, ecx
add esp, 0x28
mov dword [esp + 0x44], ebx
xor eax, eax
jmp 0x49a55c
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
sub esi, 4
add eax, edx
add edx, ecx
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x34]
push esi
call fcn.00499b90
movzx eax, byte [ebx + 2]
add esp, 8
dec eax
mov ecx, esi
js 0x49a597
lea edx, [ebx + eax*8 + 0x18]
jmp 0x49a580
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x49a58f
je 0x49a652
dec ecx
dec eax
sub edx, 8
test eax, eax
jge 0x49a580
movzx edx, word [ebx + 0xe]
mov eax, dword [ebx + 0x44]
add edx, eax
lea ecx, [edx + ecx*2]
movzx edx, byte [ecx + 1]
mov dh, byte [ecx]
add eax, edx
mov ecx, dword [ebp + 0x48]
mov ebx, dword [esp + 0x3c]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
mov eax, dword [esp + 0x30]
inc edi
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x49a480
test byte [esp + 0x38], 8
mov ebp, dword [esp + 0x28]
jne 0x49a611
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0xa0]
mov edx, dword [ecx + 0x44]
mov eax, dword [esp + ebp*4 + 0x6c]
mov ecx, dword [eax + 0x44]
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov edi, dword [esp + 0x2c]
movzx eax, byte [edi + 2]
movzx edx, word [edi + 0x14]
mov ecx, dword [esp + 0x30]
add edx, eax
cmp ecx, edx
jne 0x49a659
movzx ecx, byte [edi + 8]
mov edx, dword [edi + 0x44]
mov eax, dword [esp + ebp*4 + 0x58]
lea ecx, [ecx + edx + 8]
mov edx, eax
shr edx, 0x18
mov byte [ecx], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 8
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
jmp 0x49a6aa
mov eax, dword [edx]
jmp 0x49a5ab
dec eax
js 0x49a677
lea edx, [edi + eax*8 + 0x18]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x49a66f
je 0x49a746
dec ecx
dec eax
sub edx, 8
test eax, eax
jge 0x49a660
movzx edx, word [edi + 0xe]
mov eax, dword [edi + 0x44]
add edx, eax
lea ecx, [edx + ecx*2]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
add eax, edx
mov ecx, dword [esp + ebp*4 + 0x58]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov byte [eax + 3], cl
xor esi, esi
test ebp, ebp
jle 0x49a6be
mov eax, dword [esp + esi*4 + 0x70]
call fcn.00499a80
inc esi
cmp esi, ebp
jl 0x49a6b0
mov eax, edi
call fcn.00499a80
push edi
call fcn.0049aa50
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.00492060
mov ebx, dword [esp + 0x1c]
add esp, 4
xor edi, edi
test ebx, ebx
jle 0x49a700
mov eax, dword [esp + edi*4 + 0x50]
test eax, eax
je 0x49a6fb
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004b0350
add esp, 4
inc edi
cmp edi, ebx
jl 0x49a6e7
mov ebx, dword [esp + 0x28]
xor edi, edi
test ebx, ebx
jle 0x49a729
lea ebx, [ebx]
mov eax, dword [esp + edi*4 + 0x70]
test eax, eax
je 0x49a724
mov edx, dword [eax + 0x44]
push edx
call fcn.004b0350
add esp, 4
inc edi
cmp edi, ebx
jl 0x49a710
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004b0350
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov eax, dword [edx]
jmp 0x49a68c