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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x24], ebx
je 0x499e03
push eax
call dword [0x100cf0c4]
push 4
lea eax, [esp + 0x14]
push eax
call dword [0x100ef7e8]
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebp + 0xc]
lea eax, [edi + 0x130]
push edx
mov dword [esp + 0xf4], eax
call fcn.004f9530
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0xe8], eax
je 0x49ab6d
push 4
lea eax, [esp + 0x1c]
push eax
call dword [0x100ef7e8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [edi + 0xc4]
call fcn.004a2ca0
test eax, eax
je 0x49a5de
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 2
je 0x499ea4
mov ecx, dword [ebp + 0x38]
mov dword [ecx], 0xc000000d
mov eax, dword [ebp + 0x34]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49ac64
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebx
jmp 0x49ac64
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, 0x92000001
jne 0x499ec1
mov ecx, dword [ebp + 0x38]
mov dword [ecx], 0xc0000022
jmp 0x499e82
push 4
lea eax, [esp + 0x24]
push eax
call dword [0x100ef7e8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x100cfae8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
je 0x499f19
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
mov dword [ecx], ebx
mov dword [edx], 0xc0000229
lea esi, [esp + 0x20]
call fcn.004c5d90
lea esi, [esp + 0x18]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004f91d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
lea ebx, [esp + 0x14]
call fcn.00477460
push eax
lea esi, [esp + 0x14]
call fcn.004f91a0
mov esi, ebx
call fcn.004f91d0
lea eax, [edi + 0x1c0]
lea ecx, [ebp + 0x28]
call fcn.004a3fa0
test eax, eax
mov dword [esp + 0x14], eax
je 0x499f55
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
push ecx
call fcn.004770d0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x70]
push eax
call edx
xor esi, esi
lea ecx, [esp + 0xb8]
lea eax, [esp + 0x70]
push ecx
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x74]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, edi
mov dword [esp + 0xc8], esi
mov word [esp + 0xc4], si
mov word [esp + 0xc6], si
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0x58], 0x18
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], 0x40
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.0049bf30
test eax, eax
jne 0x499ff4
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov dword [eax], esi
lea eax, [esp + 0xb8]
mov dword [ecx], 0xc0000229
call fcn.0048b140
lea eax, [esp + 0x70]
call fcn.00505660
jmp 0x499ef5
mov edx, dword [esp + 0xe0]
xor eax, eax
xor ebx, ebx
cmp edx, dword [esp + 0xd4]
mov dword [esp + 0x4c], eax
setge bl
mov dword [esp + 0x50], eax
cmp ebx, eax
je 0x49a051
mov ecx, dword [esp + 0xc8]
mov esi, dword [ecx + 8]
cmp esi, eax
mov dword [esp + 0x1c], esi
je 0x49a02f
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
mov eax, dword [ebp + 0x28]
push edi
mov ecx, esi
call fcn.00498e30
lea esi, [esp + 0x1c]
call fcn.004c5d90
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x28]
mov eax, edi
call fcn.004993a0
test ebx, ebx
je 0x49a0a2
mov edx, dword [esp + 0xc8]
mov esi, dword [edx + 8]
test esi, esi
mov ebx, 1
mov dword [esp + 0x1c], esi
je 0x49a091
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test eax, eax
je 0x49a0a6
mov edi, ebx
jmp 0x49a0a8
mov bl, byte [esp + 0x24]
xor edi, edi
test bl, 1
je 0x49a0b6
lea esi, [esp + 0x1c]
call fcn.004c5d90
test edi, edi
jne 0x49a5b2
mov esi, dword [ebp + 0x2c]
test esi, esi
je 0x49a0f1
push 0x100d1c7c
lea ecx, [esp + 0xb4]
push ecx
call dword [0x100ef7e0]
push 1
lea edx, [esp + 0xb4]
push edx
push esi
call dword [0x100ef7cc]
test eax, eax
jne 0x49a5b2
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x49a5b2
push 0x100d1c80
lea eax, [esp + 0xac]
push eax
call dword [0x100ef7e0]
push 0x100d1c84
lea ecx, [esp + 0x12c]
push ecx
call dword [0x100ef7e0]
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x128]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 8]
test eax, eax
lea edx, [esp + 0xa8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], eax
je 0x49a153
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0
jmp 0x49a160
cmp dword [ebx + 0x2c], 0xffffffff
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + ecx*4 + 0x2c]
mov edi, dword [ebx]
je 0x49a175
movzx edx, word [eax]
add edi, edx
lea esi, [esp + 0xb0]
call fcn.00475a10
push edi
mov edi, dword [esp + 0xb4]
push edi
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x24]
push 1
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + ecx*4 + 0x34]
push eax
call dword [0x100ef7cc]
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x49a2bf
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x48]
push eax
call edx
mov esi, dword [esp + 0x48]
push 0x100cf494
lea eax, [esp + 0x124]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x124]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x48]
push 0x100cf494
lea eax, [esp + 0xfc]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xfc]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x48]
push 0x100cf494
lea eax, [esp + 0x10c]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x48]
push 0x100cf494
lea eax, [esp + 0x11c]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x11c]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x48]
push 0x100cf494
lea eax, [esp + 0x13c]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x13c]
push ecx
mov ecx, esi
call edx
lea esi, [esp + 0x48]
call fcn.004c5d90
jmp 0x49a462
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x1c]
push edx
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x49a320
mov dword [esp + 0xa0], 0x10
call fcn.0053cb50
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
jmp 0x49a459
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
mov ecx, dword [esp + 0x1c]
je 0x49a434
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x40]
push eax
call edx
mov esi, dword [esp + 0x40]
push 0x100cf494
lea eax, [esp + 0x104]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x104]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x40]
push 0x100cf494
lea eax, [esp + 0xf4]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xf4]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x40]
push 0x100cf494
lea eax, [esp + 0x114]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x114]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x40]
push 0x100cf494
lea eax, [esp + 0x134]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call edx
mov esi, dword [esp + 0x40]
push 0x100cf494
lea eax, [esp + 0x68]
push eax
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call edx
lea esi, [esp + 0x40]
call fcn.004c5d90
jmp 0x49a459
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
lea edx, [esp + 0x78]
push edx
call eax
lea ecx, [esp + 0x80]
push ecx
call fcn.004ab820
add esp, 4
lea eax, [esp + 0x78]
call fcn.00505660
lea esi, [esp + 0x1c]
call fcn.004c5d90
mov eax, dword [ebx + 0x1c]
cmp eax, 0xffffffff
je 0x49a47d
push 4
lea edx, [esp + 0xa4]
push edx
add eax, edi
push eax
call dword [0x100ef7ec]
mov eax, dword [ebx + 0x14]
cmp eax, 0xffffffff
je 0x49a491
push 8
lea ecx, [edi + eax]
push ecx
call dword [0x100ef7e8]
mov eax, dword [ebx + 0x18]
cmp eax, 0xffffffff
je 0x49a4a5
push 8
lea edx, [edi + eax]
push edx
call dword [0x100ef7e8]
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x49a4cd
mov ecx, dword [esp + 0x24]
mov ecx, dword [esp + ecx*4 + 0x2c]
movzx edx, word [ecx]
push 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [edi + eax]
push edx
call dword [0x100ef7ec]
mov eax, dword [ebx + 0x2c]
cmp eax, 0xffffffff
je 0x49a4ef
mov ecx, dword [esp + 0x24]
mov ecx, dword [esp + ecx*4 + 0x2c]
movzx edx, word [ecx]
mov ecx, dword [ecx + 4]
push edx
push ecx
lea edx, [edi + eax]
push edx
call dword [0x100ef7ec]
mov eax, dword [ebx + 0x30]
cmp eax, 0xffffffff
je 0x49a50c
push 1
lea ecx, [esp + 0x3b]
push ecx
add eax, edi
push eax
mov byte [esp + 0x43], 0
call dword [0x100ef7ec]
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x49a527
push 8
lea edx, [esp + 0x84]
push edx
add eax, edi
push eax
call dword [0x100ef7ec]
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x49a542
push 8
lea ecx, [esp + 0x94]
push ecx
add eax, edi
push eax
call dword [0x100ef7ec]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x49a55d
push 8
lea edx, [esp + 0x8c]
push edx
add eax, edi
push eax
call dword [0x100ef7ec]
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x49a578
push 8
lea ecx, [esp + 0x9c]
push ecx
add eax, edi
push eax
call dword [0x100ef7ec]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xb0]
push edx
call fcn.004771b0
lea esi, [esp + 0xb0]
call fcn.00472330
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, 2
mov dword [esp + 0x24], eax
jb 0x49a160
lea esi, [esp + 0x14]
call fcn.004c5d90
lea esi, [esp + 0x4c]
call fcn.004a44a0
lea eax, [esp + 0xb8]
call fcn.0048b140
lea eax, [esp + 0x70]
call fcn.00505660
lea esi, [esp + 0x20]
call fcn.004c5d90
jmp 0x49ab3d
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x40]
push eax
push ecx
mov eax, edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x48], bx
mov word [esp + 0x4a], bx
call fcn.0049ad00
test eax, eax
je 0x49a634
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x34]
mov dword [eax], 0xc0000229
lea eax, [esp + 0x40]
mov dword [edx], ebx
call fcn.00505660
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49ac64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
jmp 0x49ac64
lea ecx, [esp + 0xb8]
lea eax, [esp + 0x40]
push ecx
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x74]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, edi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xc4], bx
mov word [esp + 0xc6], bx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x58], 0x18
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], 0x40
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0049bf30
test eax, eax
jne 0x49a6c1
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov dword [eax], ebx
lea eax, [esp + 0xb8]
mov dword [ecx], 0xc0000229
call fcn.0048b140
lea eax, [esp + 0x40]
call fcn.00505660
jmp 0x499e87
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea ebx, [esp + 0x38]
call fcn.00477460
push eax
lea esi, [esp + 0x14]
call fcn.004f91a0
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, ebx
je 0x49a6ee
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea eax, [edi + 0x48]
mov dword [esp + 0x38], ebx
mov word [esp + 0x34], bx
mov word [esp + 0x36], bx
call fcn.004a2920
mov edx, dword [esp + 0xc8]
mov esi, dword [edx + 8]
cmp esi, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
je 0x49a72b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
push 4
lea edx, [esp + 0x20]
push edx
call dword [0x100ef7e8]
mov eax, dword [esp + 0xe0]
cmp eax, dword [esp + 0xd4]
jl 0x49a77d
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + 8]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x49a762
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x20]
call fcn.004a21c0
lea esi, [esp + 0x14]
call fcn.004c5d90
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x1c], ebx
je 0x49a7e1
lea eax, [edi + 0x1c0]
lea ecx, [ebp + 0x28]
call fcn.004a3fa0
cmp eax, ebx
je 0x49a7a1
mov edx, dword [eax]
mov esi, dword [esp + 0x10]
push edx
call fcn.004770d0
mov eax, dword [esp + 0xc8]
mov esi, dword [eax + 8]
cmp esi, ebx
mov dword [esp + 0x38], esi
je 0x49a7bb
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x2c]
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebp + 0x28]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00498e30
lea esi, [esp + 0x38]
call fcn.004c5d90
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x24], ebx
je 0x49a8a1
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x2c]
push 1
lea eax, [esp + 0x68]
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
mov eax, edi
call fcn.00499990
mov esi, dword [0x100ef48c]
push 8
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x1c], ebx
add esi, 0x160
call dword [0x100ef7e8]
push 0x21
push 3
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], eax
push 0x100001
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
mov dword [esp + 0x64], 0x18
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], 0x40
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call eax
call eax
test eax, eax
jne 0x49a894
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
push ebx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov eax, edi
call fcn.00499990
lea eax, [esp + 0x14]
call fcn.0053d580
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.00489180
test al, al
je 0x49aac2
mov eax, esi
call fcn.004ac070
cmp eax, 1
je 0x49aac2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x70]
push edx
call eax
lea eax, [esp + 0x78]
lea ecx, [esp + 0xcc]
call fcn.00484220
mov esi, eax
lea edi, [esp + 0x24]
call fcn.005055a0
lea eax, [esp + 0x70]
mov esi, edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
mov word [esp + 0x3a], bx
call fcn.00505900
test eax, eax
mov eax, dword [esp + 0x24]
je 0x49a965
mov ecx, dword [esp + 0x70]
mov edx, ecx
mov esi, eax
and edx, 0xfffe
and esi, 0xfffe
cmp esi, edx
jbe 0x49a965
movzx eax, ax
movzx ecx, cx
sub eax, ecx
sub eax, 2
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
shr ecx, 1
lea ecx, [edx + ecx*2 + 2]
sar eax, 1
push ecx
lea esi, [esp + 0xac]
call fcn.005054e0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x38]
push edx
mov eax, esi
push eax
push ecx
call fcn.00488dd0
mov eax, esi
call fcn.00505660
jmp 0x49a974
mov edx, dword [esp + 0x28]
push edx
push eax
lea esi, [esp + 0x40]
call fcn.005055f0
mov eax, 0x100cf980
lea esi, [esp + 0x38]
call fcn.005058b0
cmp dword [0x100ef594], ebx
je 0x49a9e0
lea esi, [esp + 0x4c]
call fcn.00537210
mov esi, eax
push 0x100d1c8c
call fcn.0052f5f0
push 0x100d1ae0
call fcn.0052f5f0
lea eax, [esp + 0x24]
mov edi, esi
call fcn.005373c0
mov esi, eax
push 0x100d1cb4
call fcn.0052f5f0
lea eax, [esp + 0x38]
mov edi, esi
call fcn.005373c0
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x4c]
call fcn.00537250
mov esi, dword [0x100ef48c]
push 8
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x1c], ebx
add esi, 0x160
call dword [0x100ef7e8]
push 0x21
push 3
lea edx, [esp + 0x80]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [edx + 0x24]
lea ecx, [esp + 0x48]
mov dword [esp + 0x98], ecx
push 0x100001
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x98], 0x18
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], 0x40
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call eax
call eax
test eax, eax
jne 0x49aa9a
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp + 0xc]
push 1
lea ecx, [esp + 0x68]
push ecx
push edx
push esi
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.00499990
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x68]
push ecx
push edx
push esi
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.00499990
lea eax, [esp + 0x14]
call fcn.0053d580
lea eax, [esp + 0x38]
call fcn.00505660
lea eax, [esp + 0x24]
call fcn.00505660
lea eax, [esp + 0x70]
call fcn.00505660
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
push ebx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
call fcn.00499990
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x49aaf5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x49ab01
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
lea eax, [esp + 0x2c]
call fcn.00505660
lea edx, [esp + 0x64]
push edx
call fcn.004a5730
lea eax, [esp + 0x64]
push eax
call fcn.004a5730
lea ecx, [esp + 0x64]
push ecx
call fcn.004cd0f0
lea eax, [esp + 0xb8]
call fcn.0048b140
lea eax, [esp + 0x40]
call fcn.00505660
mov esi, dword [esp + 0x10]
call fcn.00477230
lea edx, [esp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esp + 0xf4]
call fcn.004a22f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49ab6b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
mov eax, dword [ebp + 0x34]
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
call fcn.00477300
test eax, eax
je 0x49ab8d
mov ecx, dword [ebp + 0x38]
mov dword [ecx], 0xc000000f
jmp 0x49ac38
cmp byte [ebp + 0x30], bl
je 0x49ab9b
mov esi, dword [esp + 0x10]
call fcn.00477230
mov eax, dword [esp + 0x10]
call fcn.00477370
test eax, eax
je 0x49abc4
mov eax, dword [esp + 0xe8]
mov edx, dword [ebp + 0x38]
neg eax
sbb eax, eax
and eax, 0x40000009
add eax, 0x80000006
mov dword [edx], eax
jmp 0x49ac38
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004773e0
mov esi, dword [esp + 0x30]
cmp dword [ebp + 0x24], esi
mov edi, dword [esp + 0x2c]
jae 0x49ac08
mov eax, dword [esp + 0x10]
call fcn.00477140
cmp dword [ebp + 0x24], eax
mov edx, dword [ebp + 0x38]
sbb ecx, ecx
and ecx, 0x3fffffff
add ecx, 0x80000005
mov dword [edx], ecx
jmp 0x49ac2d
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push esi
push edi
push ecx
mov dword [eax], ebx
call dword [0x100ef7ec]
mov edx, dword [ebp + 0x1c]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x10]
call fcn.00477290
mov eax, dword [ebp + 0x38]
mov dword [eax], ebx
cmp edi, ebx
je 0x49ac38
mov eax, edi
call fcn.00472510
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x49ac46
push eax
call dword [0x100cf0a0]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x49ac64
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ebx
push ecx
push edx
push eax
call dword [0x100cf0a4]
push eax
call dword [0x100ef7b8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x49ac74
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34