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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1e
push 0
push 0
dec ecx
jne 0x4993b8
push ebx
push esi
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x499e18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
mov byte [eax + 0x108], 0
mov eax, dword [ebx]
mov al, byte [eax + 0xd8]
add al, 0xfe
sub al, 2
jae 0x4994ff
mov eax, dword [ebx]
cmp byte [eax + 0x11a], 0
jne 0x499485
mov dword [ebp - 8], 4
mov esi, dword [0x4e5f9c]
lea eax, [ebp - 0xc]
mov ecx, dword [esi]
mov edx, 0x499e30
call fcn.00403f50
mov edx, dword [ebp - 0xc]
or ecx, 0xffffffff
mov eax, dword [ebx]
call fcn.0046a588
movsx ecx, ax
cmp ecx, 0xffff
jbe 0x499438
call fcn.00402e94
cmp cx, 0xea
je 0x499446
cmp cx, 0x14e
jne 0x49945e
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebx]
mov byte [eax + 0x108], 1
jmp 0x4994ff
movzx eax, cx
mov ecx, 0x1f4
xor edx, edx
div ecx
cmp eax, 1
je 0x49947b
mov eax, dword [ebx]
call fcn.00489328
jmp 0x4994ff
add esi, 4
dec dword [ebp - 8]
jne 0x49940c
jmp 0x4994ff
mov eax, dword [ebx]
movzx eax, byte [eax + 0x11a]
sub eax, 1
jno 0x499498
call fcn.00402e9c
cmp eax, 3
jbe 0x4994a2
call fcn.00402e94
mov edx, dword [0x4e5f9c]
mov ecx, dword [edx + eax*4]
lea eax, [ebp - 0x10]
mov edx, 0x499e30
call fcn.00403f50
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
mov eax, dword [ebx]
call fcn.0046a588
movsx ecx, ax
cmp ecx, 0xffff
jbe 0x4994d5
call fcn.00402e94
cmp cx, 0xea
je 0x4994e3
cmp cx, 0x14e
jne 0x4994f8
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebx]
mov byte [eax + 0x108], 1
jmp 0x4994ff
mov eax, dword [ebx]
call fcn.00489328
mov eax, dword [ebx]
cmp byte [eax + 0x108], 0
jne 0x499511
mov eax, dword [ebx]
call fcn.00489340
mov eax, dword [ebx]
mov esi, dword [eax + 0x198]
xor eax, eax
mov al, byte [esi + 0x10]
cmp eax, 8
ja case.default.0x499527
jmp dword [eax*4 + 0x49952e]
push 2
mov eax, dword [ebx]
mov ecx, dword [eax + 0xbc]
lea eax, [ebp - 0x14]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0x14]
mov word [ebp - 0x1c], 0xe6
mov word [ebp - 0x1a], 0xe8
mov word [ebp - 0x18], 0x14b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
lea edx, [ebp - 0x24]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x20]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
mov eax, dword [esi + 8]
call fcn.00403f04
test eax, eax
jle 0x49962a
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x28]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0x28]
mov word [ebp - 0x2c], 0xe6
mov word [ebp - 0x2a], 0x14b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne 0x49962a
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x30]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x30]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
push 2
push 0x499e40
mov eax, dword [ebx]
push dword [eax + 0xbc]
push 0x499e60
push ebp
lea eax, [ebp - 0x38]
call fcn.00499318
pop ecx
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00403fc4
mov edx, dword [ebp - 0x34]
mov word [ebp - 0x1c], 0xe6
mov word [ebp - 0x1a], 0xe8
mov word [ebp - 0x18], 0x14b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
lea edx, [ebp - 0x40]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x3c]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov eax, dword [eax + 8]
call fcn.00403f04
test eax, eax
jle 0x499721
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x44]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0x44]
mov word [ebp - 0x2c], 0xe6
mov word [ebp - 0x2a], 0x14b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne 0x499721
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x48]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x48]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
push ebp
lea eax, [ebp - 0x50]
call fcn.00499318
pop ecx
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x499e6c
call fcn.00403f50
mov edx, dword [ebp - 0x4c]
or ecx, 0xffffffff
mov eax, dword [ebx]
call fcn.0046a588
push 2
mov eax, dword [ebx]
mov ecx, dword [eax + 0xbc]
lea eax, [ebp - 0x54]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0x54]
mov word [ebp - 0x1c], 0xe6
mov word [ebp - 0x1a], 0xe8
mov word [ebp - 0x18], 0x14b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
lea edx, [ebp - 0x5c]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x58]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov eax, dword [eax + 8]
call fcn.00403f04
test eax, eax
jle 0x49982a
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x60]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0x60]
mov word [ebp - 0x2c], 0xe6
mov word [ebp - 0x2a], 0x14b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne 0x49982a
lea edx, [ebp - 0x68]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x64]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
push ebp
lea eax, [ebp - 0x70]
call fcn.00499318
pop ecx
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x499e7c
call fcn.00403f50
mov edx, dword [ebp - 0x6c]
or ecx, 0xffffffff
mov eax, dword [ebx]
call fcn.0046a588
push 2
mov eax, dword [ebx]
mov ecx, dword [eax + 0xbc]
lea eax, [ebp - 0x74]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0x74]
mov word [ebp - 0x1c], 0xe6
mov word [ebp - 0x1a], 0xe8
mov word [ebp - 0x18], 0x14b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
lea edx, [ebp - 0x7c]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0x78]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
push 2
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xbc]
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x94], 0xb
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov eax, dword [eax + 8]
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0xb
push ebp
lea eax, [ebp - 0x9c]
call fcn.00499318
pop ecx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
lea edx, [ebp - 0x98]
mov ecx, 2
mov eax, 0x499e8c
call fcn.0040a190
mov edx, dword [ebp - 0x80]
mov word [ebp - 0x1c], 0xe6
mov word [ebp - 0x1a], 0xe8
mov word [ebp - 0x18], 0x14b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov eax, dword [eax + 0xc]
call fcn.00403f04
test eax, eax
jle 0x4999b1
push 0x499e50
lea edx, [ebp - 0xa4]
mov eax, dword [ebx]
call fcn.0049af40
push dword [ebp - 0xa4]
push 0x499e60
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
push dword [eax + 0xc]
lea eax, [ebp - 0xa0]
mov edx, 4
call fcn.00403fc4
mov edx, dword [ebp - 0xa0]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
lea edx, [ebp - 0xac]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0xa8]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov eax, dword [eax + 8]
call fcn.00403f04
test eax, eax
jle 0x499a69
push 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0xb0]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0xb0]
mov word [ebp - 0x2c], 0xe6
mov word [ebp - 0x2a], 0x14b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne 0x499a69
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xb4]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0xb4]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
push 2
mov eax, dword [ebx]
mov ecx, dword [eax + 0xbc]
lea eax, [ebp - 0xb8]
mov edx, 0x499e40
call fcn.00403f50
mov edx, dword [ebp - 0xb8]
mov word [ebp - 0x1c], 0xe6
mov word [ebp - 0x1a], 0xe8
mov word [ebp - 0x18], 0x14b
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
lea edx, [ebp - 0xc0]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0xbc]
mov cx, 0xe6
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
push 1
push 0x499e40
mov eax, dword [ebx]
push dword [eax + 0xbc]
push 0x499e60
push ebp
lea eax, [ebp - 0xcc]
call fcn.00499318
pop ecx
push dword [ebp - 0xcc]
push 0x499ea4
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
push dword [eax + 8]
lea eax, [ebp - 0xc8]
mov edx, 6
call fcn.00403fc4
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
call fcn.00408f48
mov edx, dword [ebp - 0xc4]
mov word [ebp - 0x2c], 0xe6
mov word [ebp - 0x2a], 0x14b
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14b
jne case.default.0x499527
push 3
lea edx, [ebp - 0xd4]
mov eax, dword [ebx]
call fcn.0049af40
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
mov edx, 0x499e50
call fcn.00403f50
mov edx, dword [ebp - 0xd0]
mov word [ebp - 0xdc], 0xe6
mov word [ebp - 0xda], 0xe8
mov word [ebp - 0xd8], 0xca
mov word [ebp - 0xd6], 0x14c
lea ecx, [ebp - 0xdc]
mov eax, dword [ebx]
mov esi, dword [eax]
call dword [esi + 0x78]
cmp ax, 0x14c
jne case.default.0x499527
mov eax, dword [ebx]
mov eax, dword [eax + 0x198]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xe0]
mov edx, 0x499eb0
call fcn.00403f50
mov edx, dword [ebp - 0xe0]
or ecx, 0xffffffff
mov eax, dword [ebx]
call fcn.0046a588
jmp case.default.0x499527
lea edx, [ebp - 0xe4]
mov eax, dword [0x4e5e14]
call fcn.004061d0
mov ecx, dword [ebp - 0xe4]
mov dl, 1
mov eax, dword [0x45f7c0]
call fcn.004567a4
call fcn.004036b4
jmp case.default.0x499527
mov eax, dword [ebx]
call fcn.0049aecc
mov eax, dword [ebx]
mov edx, dword [eax + 0x70]
mov eax, dword [ebx]
mov eax, dword [eax + 0x114]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x114]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebx]
call fcn.0049b77c
or ecx, 0xffffffff
mov edx, 0x499ec0
mov eax, dword [ebx]
call fcn.0046a588
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebx]
mov eax, dword [eax + 0x70]
mov edx, dword [eax + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x499c9e
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x499cd1
mov eax, dword [ebx]
mov esi, dword [eax + 0xf8]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sub edx, 1
jno 0x499cca
call fcn.00402e9c
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebx]
cmp byte [eax + 0x10c], 0
je 0x499d0a
mov edx, 0x499ed0
mov eax, dword [ebx]
call fcn.0049aac8
test al, al
je 0x499cfc
mov edx, 0x499ee0
mov eax, dword [ebx]
call fcn.0049aac8
test al, al
jne 0x499d00
xor eax, eax
jmp 0x499d02
mov al, 1
mov edx, dword [ebx]
mov byte [edx + 0x10c], al
lea edx, [ebp - 0xe8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x104]
call fcn.0049b084
cmp dword [ebp - 0xe8], 0
je 0x499d6f
mov edx, 0x499ef0
mov eax, dword [ebx]
call fcn.0049aac8
test al, al
je 0x499d6f
lea edx, [ebp - 0xf0]
mov eax, dword [ebx]
mov eax, dword [eax + 0x104]
call fcn.0049b084
mov ecx, dword [ebp - 0xf0]
lea eax, [ebp - 0xec]
mov edx, 0x499f00
call fcn.00403f50
mov edx, dword [ebp - 0xec]
or ecx, 0xffffffff
mov eax, dword [ebx]
call fcn.0046a588
mov eax, dword [ebx]
cmp byte [eax + 0x19e], 0
je 0x499d9a
mov edx, 0x499f10
mov eax, dword [ebx]
call fcn.0049aac8
test al, al
jne 0x499d9e
mov edx, 0x499f20
mov eax, dword [ebx]
call fcn.0049aac8
test al, al
jne 0x499d9e
xor eax, eax
jmp 0x499da0
mov al, 1
mov edx, dword [ebx]
mov byte [edx + 0x10a], al
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1a0]
mov edx, 0x499f30
mov eax, dword [ebx]
call fcn.0049aba8
mov eax, dword [ebx]
call fcn.004975b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499e1f
lea eax, [ebp - 0xf0]
mov edx, 5
call fcn.00403ca8
lea eax, [ebp - 0xd4]
mov edx, 0xf
call fcn.00403ca8
lea eax, [ebp - 0x80]
mov edx, 0x15
call fcn.00403ca8
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00403ca8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403ca8
ret