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

Disassembly:
sub esp, 0x398
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x54]
test al, 0x10
push esi
push edi
je 0x49c066
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
test edx, edx
mov ebp, dword [esp + 0x490]
mov edi, dword [esp + 0x48c]
je 0x49b21f
test ah, 2
jne 0x49b214
mov ecx, ebx
call fcn.00449f50
test eax, eax
je 0x49b1ca
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 4]
call fcn.0048dc90
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
push 0
lea eax, [esp + 0x94]
push eax
push edx
mov ecx, ebx
call fcn.00491f80
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
push 0
push 1
push ebp
push edi
sub esp, 0xdc
lea edx, [esp + 0x17c]
mov ecx, esp
push edx
call fcn.00493640
mov ecx, esi
call fcn.00498690
test eax, eax
je 0x49c066
jmp 0x49b21f
mov dword [esp + 0x494], 1
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x170]
call fcn.00493640
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x16c]
push ecx
mov edx, ecx
push edx
lea eax, [ebx + 0x30]
push eax
add esi, 0x2c
call fcn.0043e660
add esp, 0xc
test esi, esi
je 0x49b261
push esi
lea ecx, [esp + 0x18c]
call fcn.0046bfd0
push edi
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x3b8]
push edx
push ebx
call fcn.0049ae50
mov ecx, dword [ebp + 4]
mov dword [esp + 0x49c], eax
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.00449f80
test eax, eax
je 0x49b2bb
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x20]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x170]
push edx
call fcn.00446a90
test al, al
je 0x49c066
mov eax, dword [ebx + 0x18]
test eax, eax
mov esi, 0x2000000
je 0x49b4fd
cmp dword [eax + 0x78], 9
jne 0x49b4fd
mov eax, dword [eax + 0x68]
test eax, eax
je 0x49b400
mov cl, byte [eax + 0x5ee]
test cl, cl
je 0x49b400
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x49b300
mov edx, dword [eax]
jmp 0x49b302
mov edx, eax
test edx, edx
je 0x49b316
test ecx, ecx
je 0x49b30c
mov eax, dword [eax]
test byte [eax + 0x3c], 1
je 0x49c066
mov eax, dword [ebx + 8]
test dword [eax + 0x54], esi
mov ecx, dword [eax + 0x78]
je 0x49b323
mov ecx, dword [ecx]
test ecx, ecx
je 0x49b343
test dword [eax + 0x54], esi
je 0x49b333
mov edx, dword [eax + 0x78]
mov eax, dword [edx]
jmp 0x49b336
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x3c]
shr eax, 1
test al, 1
je 0x49c066
mov ecx, ebx
and ecx, 0xfffff000
mov edx, dword [ecx]
mov eax, dword [edx + 0x128]
mov eax, dword [eax + 0x23c]
test dword [eax + 0x54], esi
mov ecx, dword [eax + 0x78]
je 0x49b363
mov ecx, dword [ecx]
test ecx, ecx
je 0x49b383
test dword [eax + 0x54], esi
je 0x49b373
mov edx, dword [eax + 0x78]
mov eax, dword [edx]
jmp 0x49b376
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x3c]
shr eax, 1
test al, 1
je 0x49c066
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x128]
test ah, 4
je 0x49b3f1
test ah, 0x10
je 0x49b3f1
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x24], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.0048eaf0
mov ecx, eax
call fcn.0046c390
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x20]
push 0
push edx
push eax
call fcn.0042c460
test eax, eax
je 0x49c066
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov ecx, ebx
call fcn.0048dd90
test al, al
jne 0x49c066
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x128]
test ch, 0x10
je 0x49b47d
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x49b425
mov cl, byte [eax + 0x5ee]
test cl, cl
jne 0x49b47d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0048eaf0
mov ecx, eax
call fcn.0046c390
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + 0x18]
mov edx, dword [esp + 0x20]
push 0
push eax
push edx
call fcn.0042c460
test eax, eax
je 0x49b4fd
mov eax, dword [esp + 0x3ac]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x49b493
mov eax, dword [eax + 8]
test eax, eax
je 0x49b493
mov eax, dword [eax + 0x3e0]
jmp 0x49b495
xor eax, eax
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x174]
push edx
call fcn.0043fb10
add esp, 0xc
test al, al
je 0x49b4fd
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0043df30
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
mov ecx, ebx
call fcn.00492130
push eax
call fcn.0043dad0
add esp, 8
test eax, eax
je 0x49b4fd
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
mov edx, dword [ebx + 4]
mov ecx, dword [edx + 0x18]
call fcn.00426090
test eax, eax
je 0x49c066
test dword [ebx + 0x54], esi
mov eax, dword [ebx + 0x78]
je 0x49b507
mov eax, dword [eax]
test eax, eax
jne 0x49b82e
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x49b52b
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x49b52b
mov dl, byte [ecx + 0x5ee]
test dl, dl
jne 0x49b82e
mov ecx, dword [esp + 0x498]
test ecx, ecx
je 0x49b670
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x49b670
mov eax, dword [eax + 0x78]
cmp eax, 6
je 0x49b556
cmp eax, 0x61
jne 0x49b670
mov esi, dword [ebx + 0x10]
test esi, esi
mov edi, dword [esp + 0x48c]
je 0x49b5d9
mov ecx, dword [esi + 4]
cmp word [ecx + 0x56], 0
je 0x49b598
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push edi
sub esp, 0xdc
lea eax, [esp + 0x258]
mov ecx, esp
push eax
call fcn.00493640
mov ecx, esi
call fcn.00498690
mov esi, eax
jmp 0x49b5d5
mov ecx, dword [esp + 0x498]
mov edx, dword [esp + 0x494]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push edi
sub esp, 0xdc
lea edx, [esp + 0x258]
mov ecx, esp
push edx
call fcn.00493640
mov eax, dword [esp + 0x498]
push eax
mov ecx, esi
call fcn.0049b180
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x49b564
mov ecx, dword [esp + 0x3ac]
mov eax, dword [ecx]
test eax, eax
je 0x49b5fa
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x78]
cmp eax, 6
je 0x49b5fa
cmp eax, 0x61
jne 0x49c066
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x94]
call fcn.00493640
mov ecx, dword [ebp]
mov eax, dword [esp + 0x494]
mov edx, dword [ebp + 4]
push 0
push 0
push 0
push eax
push 0
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], edx
push edi
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
mov dword [esp + 0x40], 0
call fcn.00499920
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49c066
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov ecx, ebx
call fcn.0048e210
test eax, eax
je 0x49bb7e
lea edx, [esp + 0x3b0]
push edx
lea ecx, [esp + 0x94]
mov ebp, ebx
xor edi, edi
call fcn.00493640
mov eax, dword [esp + 0x490]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x68]
mov esi, dword [ecx + 0xd4]
test esi, esi
je 0x49b7d4
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x1c], 2
mov eax, dword [edx + 0xb4]
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.004880e0
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + 0xb4]
mov ecx, dword [esi + 0xd38]
push edi
push edi
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov ecx, esi
call fcn.004c3460
test eax, eax
je 0x49b7cb
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004c0960
test eax, eax
je 0x49b7cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
je 0x49b7cb
mov eax, dword [eax + 0x54]
test eax, eax
je 0x49b7cb
mov esi, dword [ebx + 8]
test esi, esi
mov ebp, eax
je 0x49b798
lea esp, [esp]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x49b74c
mov eax, dword [eax + 8]
jmp 0x49b74e
xor eax, eax
cmp esi, dword [eax + 0xe0]
je 0x49b798
mov ecx, esi
call fcn.00449f80
test eax, eax
je 0x49b791
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov al, byte [ecx + 0x129]
test al, al
je 0x49b791
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x210]
add dword [esp + 0x14], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x214]
add dword [esp + 0x18], ecx
mov esi, dword [esi + 8]
test esi, esi
jne 0x49b740
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
call fcn.00491f20
test al, al
jne 0x49b7c6
lea ecx, [esp + 0x28]
call fcn.00486bf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov edi, 1
lea ecx, [esp + 0x28]
call fcn.00486bf0
mov ecx, dword [esp + 0x494]
mov eax, dword [esp + 0x48c]
push 0
push 0
push 0
push ecx
push edi
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
mov dword [esp + 0x44], 0
call fcn.00499920
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49c066
mov eax, dword [esp + 0x3ac]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x49bb7e
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 0x78]
cmp eax, 6
je 0x49b84d
cmp eax, 0x61
jne 0x49bb7e
mov eax, dword [ebx + 8]
test dword [eax + 0x54], esi
je 0x49b85c
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x49b85f
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x49b87b
test dword [eax + 0x54], esi
mov eax, dword [eax + 0x78]
je 0x49b86d
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x49c066
mov edx, ebx
and edx, 0xfffff000
mov eax, dword [edx]
mov ecx, dword [eax + 0x128]
mov eax, dword [ecx + 0x23c]
test dword [eax + 0x54], esi
je 0x49b89d
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x49b8a0
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x49b8bc
test dword [eax + 0x54], esi
mov eax, dword [eax + 0x78]
je 0x49b8ae
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x49c066
mov ecx, ebx
call fcn.0048dd90
test al, al
jne 0x49c066
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x78]
shr eax, 0x19
and eax, 1
mov dword [esp + 0x1c], 0
je 0x49b8e5
mov edx, dword [ecx]
jmp 0x49b8e7
mov edx, ecx
test edx, edx
je 0x49ba04
test eax, eax
je 0x49b8f5
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x3c]
shr edx, 1
test dl, 1
je 0x49ba04
mov esi, dword [ebx + 0x10]
test esi, esi
mov ebp, dword [esp + 0x498]
je 0x49b983
mov edi, dword [esp + 0x48c]
jmp 0x49b920
mov eax, dword [esi + 4]
cmp word [eax + 0x56], 0
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x14]
je 0x49b954
push 0
push 0
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.00493640
mov ecx, esi
call fcn.00498690
mov esi, eax
jmp 0x49b97f
mov eax, dword [esp + 0x494]
push ebp
push eax
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.00493640
lea eax, [esp + 0x108]
push eax
mov ecx, esi
call fcn.0049b180
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x49b920
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x49b9e6
lea ebx, [ebx]
mov ecx, dword [esi + 4]
mov ax, word [ecx + 0x56]
test ax, ax
je 0x49b9df
push ebp
push 1
lea edx, [esp + 0x1c]
push edx
movzx edi, ax
mov eax, dword [esp + 0x498]
push eax
sub esp, 0xdc
lea edx, [esp + 0x258]
mov ecx, esp
push edx
call fcn.00493640
lea eax, [esp + 0x108]
push eax
mov ecx, esi
call fcn.0049b180
mov esi, dword [esi + 0xc]
test esi, esi
je 0x49b9e6
cmp dword [esi + 0x1c], edi
jle 0x49b9d3
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x49b990
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49ba04
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x49ba16
mov edx, dword [eax]
jmp 0x49ba18
mov edx, eax
test edx, edx
je 0x49ba39
test ecx, ecx
je 0x49ba22
mov eax, dword [eax]
test byte [eax + 0x3c], 1
je 0x49c066
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x78], 0x61
je 0x49c066
lea eax, [esp + 0x3b0]
push eax
lea ecx, [esp + 0x94]
mov edi, ebx
xor esi, esi
call fcn.00493640
mov eax, dword [esp + 0x490]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + 0xd4]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x49bb2c
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x49ba8e
mov edx, dword [eax]
jmp 0x49ba90
mov edx, eax
test edx, edx
je 0x49bb2c
test ecx, ecx
je 0x49ba9e
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x49bb2c
mov esi, dword [ebx + 8]
test esi, esi
mov edi, dword [eax + 0x38]
je 0x49bb0b
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x49babf
mov eax, dword [eax + 8]
jmp 0x49bac1
xor eax, eax
cmp esi, dword [eax + 0xe0]
je 0x49bb0b
mov ecx, esi
call fcn.00449f80
test eax, eax
je 0x49bb04
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov al, byte [ecx + 0x129]
test al, al
je 0x49bb04
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x210]
add dword [esp + 0x14], ecx
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + 0x214]
add dword [esp + 0x18], ecx
mov esi, dword [esi + 8]
test esi, esi
jne 0x49bab3
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.00491f20
test al, al
je 0x49c066
mov esi, 1
mov ecx, dword [esp + 0x494]
mov eax, dword [esp + 0x48c]
push 0
push 0
push 0
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.00499920
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49c066
mov eax, dword [esp + 0x3ac]
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x49bf8a
mov eax, dword [esi + 0x78]
mov ebp, 2
cmp eax, ebp
jne 0x49bf8a
mov edi, dword [esi + 0x68]
test edi, edi
je 0x49bc47
mov al, byte [edi + 0x5ee]
test al, al
je 0x49bc47
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x78]
shr ecx, 0x19
and ecx, 1
je 0x49bbc4
mov edx, dword [eax]
jmp 0x49bbc6
mov edx, eax
test edx, edx
je 0x49bbda
test ecx, ecx
je 0x49bbd0
mov eax, dword [eax]
test byte [eax + 0x3c], 1
je 0x49c066
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x54]
mov edx, 0x2000000
test edx, ecx
mov ecx, dword [eax + 0x78]
je 0x49bbee
mov ecx, dword [ecx]
test ecx, ecx
je 0x49bc0a
test dword [eax + 0x54], edx
mov eax, dword [eax + 0x78]
je 0x49bbfc
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x49c066
mov eax, ebx
and eax, 0xfffff000
mov ecx, dword [eax]
mov eax, dword [ecx + 0x128]
mov eax, dword [eax + 0x23c]
test dword [eax + 0x54], edx
mov ecx, dword [eax + 0x78]
je 0x49bc29
mov ecx, dword [ecx]
test ecx, ecx
je 0x49bc4c
test dword [eax + 0x54], edx
mov eax, dword [eax + 0x78]
je 0x49bc37
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
shr ecx, 1
test cl, 1
je 0x49c066
jmp 0x49bc4c
mov edx, 0x2000000
mov al, byte [edi + 0x5ee]
test al, al
je 0x49bd48
test dword [ebx + 0x54], edx
je 0x49bc66
mov edx, dword [ebx + 0x78]
mov eax, dword [edx]
jmp 0x49bc69
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x49c066
mov eax, dword [eax + 0x60]
test eax, eax
je 0x49c066
mov esi, dword [eax + 0x38]
lea edi, [esi + 0x7c]
mov eax, edi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0
call fcn.00493640
lea edx, [esp + 0x90]
push edx
mov eax, edx
push eax
lea ecx, [esi + 0x30]
push ecx
call fcn.0043e660
add esp, 0xc
push edi
lea edx, [esp + 0x94]
push edx
mov ecx, esi
call fcn.00496860
mov ecx, esi
call fcn.00490160
push 0
push 1
mov ecx, esi
call fcn.00491c40
mov ecx, dword [esp + 0x48c]
push 0
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x188]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00499920
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49bd2c
mov ecx, dword [esp + 0x3ac]
mov dword [ecx], ebx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edi], ebp
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp 0x49bf8a
mov eax, dword [esi + 0x70]
test eax, eax
je 0x49bf8a
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], edx
call fcn.00401580
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x70]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.0049cc10
mov eax, dword [ebx + 0x18]
cmp byte [eax + 0x7e], 0x22
jne 0x49bd86
add dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov al, byte [esi + ebp]
inc ebp
test al, al
mov byte [esp + 0x13], al
je 0x49bf8a
mov edi, edi
lea eax, [esi + ebp]
xor ecx, ecx
add ebp, 2
mov dword [esp + 0x40], ebp
mov ch, byte [eax + 1]
xor edx, edx
mov cl, byte [eax]
lea eax, [esi + ebp]
add ebp, 2
mov dword [esp + 0x40], ebp
mov dh, byte [eax + 1]
mov edi, ecx
lea ecx, [esp + 0x3c]
mov dl, byte [eax]
lea eax, [esp + 0x248]
push eax
add dx, word [ebx + 0x1c]
mov esi, edx
call fcn.0049e7c0
mov ecx, dword [ebx + 0x18]
cmp byte [ecx + 0x7e], 0x22
jne 0x49bdf4
push 1
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x44]
call fcn.0049e910
mov al, byte [esp + 0x13]
xor ebp, ebp
test al, 0x10
je 0x49be3b
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx + 0x210]
cmp eax, ebp
jne 0x49be13
call fcn.004a0f20
cmp eax, 8
jl 0x49be3b
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call fcn.00448f80
lea ecx, [esp + 0x28]
call fcn.00448f10
test byte [esp + 0x13], 0x20
je 0x49be60
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 0x68]
mov eax, dword [ecx + 0x210]
cmp eax, ebp
jne 0x49be57
call fcn.004a0f20
cmp eax, 8
jl 0x49be60
inc dword [esp + 0x40]
test byte [esp + 0x13], 8
je 0x49bf62
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0049dc20
test eax, eax
mov dword [esp + 0x20], eax
je 0x49bf62
mov eax, ebx
and eax, 0xfffff000
mov ecx, dword [eax]
mov edx, dword [ecx + 0x128]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00477360
mov ebp, eax
mov eax, dword [ebx + 0x2c]
add esp, 4
push eax
mov ecx, ebp
call fcn.0044da50
mov ecx, dword [esp + 0x20]
movzx edx, si
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], edx
lea edi, [ebp + 0x30]
mov ecx, 7
lea esi, [esp + 0x248]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
call fcn.0046bcb0
lea eax, [esp + 0x7c]
push eax
mov ecx, ebp
call fcn.00495ad0
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x78], 9
jne 0x49bef9
lea edx, [ebx + 0x20]
push edx
lea ecx, [ebp + 0x20]
call fcn.00479360
mov ecx, ebp
call fcn.00496520
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x94]
call fcn.00493640
lea ecx, [esp + 0x90]
push ecx
mov edx, ecx
push edx
lea eax, [ebp + 0x30]
push eax
call fcn.0043e660
add esp, 0xc
lea eax, [ebp + 0x7c]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, ebp
call fcn.00496860
mov eax, dword [esp + 0x48c]
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ecx, ebp
call fcn.00497de0
test eax, eax
mov ecx, ebp
push 1
jne 0x49bf7c
mov edx, dword [ebp]
call dword [edx]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov al, byte [esi + ebp]
inc ebp
test al, al
mov byte [esp + 0x13], al
jne 0x49bda0
jmp 0x49bf8a
mov eax, dword [esp + 0x3b0]
mov dword [eax], ebx
mov edx, dword [ebp]
call dword [edx]
mov esi, dword [ebx + 0x10]
test esi, esi
mov edi, dword [esp + 0x48c]
je 0x49c003
mov ebp, dword [esp + 0x494]
nop
mov eax, dword [esi + 4]
cmp word [eax + 0x56], 0
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x14]
je 0x49bfd4
push 0
push 0
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.00493640
mov ecx, esi
call fcn.00498690
mov esi, eax
jmp 0x49bfff
mov eax, dword [esp + 0x498]
push eax
push ebp
push ecx
push edi
sub esp, 0xdc
mov ecx, esp
push edx
call fcn.00493640
mov eax, dword [esp + 0x498]
push eax
mov ecx, esi
call fcn.0049b180
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x49bfa0
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x49c066
lea ebx, [ebx]
mov ecx, dword [ebx + 4]
mov ax, word [ecx + 0x56]
test ax, ax
je 0x49c05f
mov edx, dword [esp + 0x498]
push edx
push 1
movzx esi, ax
lea eax, [esp + 0x1c]
push eax
push edi
sub esp, 0xdc
lea edx, [esp + 0x258]
mov ecx, esp
push edx
call fcn.00493640
mov eax, dword [esp + 0x498]
push eax
mov ecx, ebx
call fcn.0049b180
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x49c066
cmp dword [ebx + 0x1c], esi
jle 0x49c053
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x49c010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xf0