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

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6758a3
call fcn.00629210
sub esp, 0x148
push ebx
xor edx, edx
mov ebx, ecx
push esi
push edi
mov dword [ebp + 0x4c], ebx
cmp byte [ebp + 0x70], dl
je 0x4a67ce
push dword [ebp + 0x78]
lea ecx, [ebx + 0x20]
push dword [ebp + 0x74]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax]
xor edi, edi
mov esi, edi
cmp dword [ebx + 0x1d4], esi
jbe 0x4a66fd
push esi
lea ecx, [ebx + 0x1c4]
call fcn.0041f6af
push dword [ebx + 0x61c]
mov ecx, dword [eax]
call fcn.004e149e
inc esi
cmp esi, dword [ebx + 0x1d4]
jb 0x4a66d9
xor edi, edi
mov esi, dword [0x76d734]
cmp esi, dword [ebx + 0x6f0]
jl 0x4a6744
jg 0x4a671b
mov ecx, dword [0x76d730]
cmp ecx, dword [ebx + 0x6ec]
jb 0x4a674a
mov ecx, ebx
call fcn.0049da2c
mov ecx, dword [0x76d730]
mov eax, dword [0x76d734]
add ecx, 0xa
mov dword [ebx + 0x6ec], ecx
adc eax, edi
mov dword [ebx + 0x6f0], eax
mov esi, dword [0x76d734]
mov ecx, dword [0x76d730]
mov edx, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xc4]
add edx, 0xa8c0
adc eax, edi
cmp esi, eax
jl 0x4a677b
jg 0x4a6768
cmp ecx, edx
jb 0x4a677b
mov ecx, ebx
call fcn.004b0cb8
mov esi, dword [0x76d734]
mov ecx, dword [0x76d730]
mov edx, dword [0x76c9c8]
test edx, edx
je 0x4a679d
xor eax, eax
add edx, dword [ebx + 0x4bc]
adc eax, dword [ebx + 0x4c0]
cmp esi, eax
jg 0x4a67c4
jl 0x4a679d
cmp ecx, edx
jae 0x4a67c4
mov eax, dword [ebx + 0x4a0]
test eax, eax
jg 0x4a67aa
push 0x3c
pop eax
imul eax, eax, 0x3c
cdq
add eax, dword [ebx + 0x4bc]
adc edx, dword [ebx + 0x4c0]
cmp esi, edx
jl 0x4a67cc
jg 0x4a67c4
cmp ecx, eax
jb 0x4a67cc
push edi
mov ecx, ebx
call fcn.0049a25a
xor edx, edx
mov al, byte [ebx + 0x594]
test al, al
je 0x4a67f3
sub al, 1
mov byte [ebx + 0x594], al
jne 0x4a67f3
test byte [ebx + 0x138], 1
je 0x4a67f3
push edx
mov ecx, ebx
call fcn.004b2bf6
call fcn.0048936f
mov esi, eax
mov al, byte [ebp + 0x70]
test al, al
je 0x4a68eb
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x168]
test al, al
je 0x4a68e8
test esi, esi
jle 0x4a68e8
mov eax, dword [ebx + 0x1e0]
xor edi, edi
sub eax, dword [ebx + 0x1dc]
mov ecx, edi
push 4
pop edx
cmp eax, edx
jb 0x4a6885
mov eax, dword [ebx + 0x1dc]
mov edx, ecx
shl edx, 2
mov eax, dword [edx + eax]
test byte [eax + 0x62], 1
jne 0x4a6859
mov eax, dword [ebx + 0x1dc]
mov eax, dword [edx + eax]
test byte [eax + 0x62], 0x10
jne 0x4a686f
mov eax, dword [ebx + 0x1e0]
inc ecx
sub eax, dword [ebx + 0x1dc]
sar eax, 2
cmp ecx, eax
jne 0x4a6836
jmp 0x4a6882
mov eax, dword [ebx + 0x1dc]
mov ecx, ebx
push 3
add eax, edx
push eax
call fcn.0049bf54
dec esi
push 4
pop edx
test esi, esi
jle 0x4a68e8
test byte [ebx + 0x138], 0x40
jne 0x4a689b
cmp byte [0x74d045], 0
je 0x4a68e8
mov eax, dword [ebx + 0x1e0]
sub eax, dword [ebx + 0x1dc]
cmp eax, edx
jb 0x4a68e8
mov edx, dword [0x74d094]
test edx, edx
je 0x4a68e8
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [ebx + 0x288]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp dword [eax + 0x74], edi
jg 0x4a68e1
push edx
add eax, 0x38
push eax
call fcn.004e06c3
test al, al
je 0x4a68e1
push esi
mov ecx, ebx
call fcn.0049d16d
mov ecx, ebx
call fcn.004ac85a
mov al, byte [ebp + 0x70]
test byte [ebx + 0x138], 1
jne 0x4a6947
test al, al
je 0x4a7800
movzx eax, byte [ebx + 0x2dd]
xor ecx, ecx
mov dword [ebx + 0x440], ecx
mov dword [ebx + 0x444], ecx
mov dword [ebx + 0x448], ecx
mov byte [ebx + 0x2dd], cl
test eax, eax
je 0x4a692e
push ecx
push 0x10000
mov ecx, ebx
call fcn.0049cbcd
test byte [ebx + 0x143], 0xc
jne 0x4a7800
mov ecx, ebx
call fcn.0049963b
jmp 0x4a7800
mov al, byte [ebx + 0x144]
test al, 8
jne 0x4a6a61
or al, 8
lea ecx, [ebp + 0x18]
mov byte [ebx + 0x144], al
lea eax, [ebx + 0x1e8]
push eax
call fcn.00495183
xor edx, edx
lea ecx, [ebx + 0x198]
mov eax, dword [ecx + 0x10]
mov edi, edx
mov dword [ebp - 4], edx
mov dword [ebp + 0x60], eax
test eax, eax
je 0x4a6a1c
push edi
call fcn.0041f6af
mov ecx, eax
call fcn.004867ce
mov esi, eax
mov dword [ebp + 0x58], esi
mov al, byte [esi + 0x81]
and al, 1
je 0x4a69a9
mov ecx, dword [esi]
xor esi, esi
jmp 0x4a69ad
xor esi, esi
mov ecx, esi
test al, al
je 0x4a6a08
cmp dword [ebp + 0x28], 0
je 0x4a69da
lea eax, [ecx + 0x78]
mov dword [ebp + 0x64], eax
push esi
lea ecx, [ebp + 0x18]
call fcn.004f2484
push dword [ebp + 0x64]
mov ecx, eax
call fcn.0040b594
test eax, eax
je 0x4a69f9
inc esi
cmp esi, dword [ebp + 0x28]
jne 0x4a69bd
mov esi, dword [ebp + 0x58]
xor eax, eax
push eax
mov ecx, esi
call fcn.004dec81
push esi
mov ecx, ebx
call fcn.004ac358
mov eax, dword [ebp + 0x60]
dec eax
dec edi
mov dword [ebp + 0x60], eax
jmp 0x4a6a0b
cmp esi, 0xffffffff
je 0x4a69da
push esi
lea eax, [ebp + 0x18]
push eax
call fcn.0049019e
mov eax, dword [ebp + 0x60]
inc edi
lea ecx, [ebx + 0x198]
cmp edi, eax
jb 0x4a6987
xor edx, edx
cmp dword [ebp + 0x28], 0
mov esi, edx
jbe 0x4a6a49
push esi
lea ecx, [ebp + 0x18]
call fcn.004f2484
cmp dword [eax + 0x14], 0x10
jb 0x4a6a35
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 1
push ecx
push eax
mov ecx, ebx
call fcn.004b2989
inc esi
cmp esi, dword [ebp + 0x28]
jb 0x4a6a24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00462eea
push 8
push 1
push dword [ebp + 0x18]
call fcn.00423768
mov al, byte [ebx + 0x144]
push 4
pop ecx
test cl, al
jne 0x4a6a7d
or al, cl
mov ecx, ebx
mov byte [ebx + 0x144], al
call fcn.004af70e
cmp byte [ebp + 0x70], 0
je 0x4a6aa2
mov ecx, dword [ebx + 0xcc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x4a6aa2
mov ecx, dword [ebx + 0xcc]
push 1
mov eax, dword [ecx]
call dword [eax + 0xbc]
push 4
pop eax
test byte [ebx + 0x14c], al
je 0x4a7010
mov eax, dword [ebx + 0x6e0]
xor edx, edx
mov ecx, dword [ebx + 0x6dc]
cmp eax, edx
ja 0x4a6acb
cmp ecx, edx
jbe 0x4a7010
add ecx, 0x3fff
adc eax, edx
shrd ecx, eax, 0xe
shr eax, 0xe
cmp dword [ebx + 0xf0], ecx
jne 0x4a7010
cmp edx, eax
jne 0x4a7010
push dword [ebx + 0xe0]
call fcn.0049a245
test al, al
je 0x4a7010
mov esi, dword [ebx + 0xe0]
test esi, esi
je 0x4a6b1f
mov ecx, esi
call fcn.004f9840
push 0x180
push esi
call fcn.00629317
pop ecx
pop ecx
sub esp, 0x18
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0xe0], eax
push esp
call fcn.004a0e33
mov ecx, ebx
call fcn.004af476
push 7
pop edx
xor ecx, ecx
mov dword [ebp + 0x40], edx
xor eax, eax
mov dword [ebp + 0x3c], ecx
mov word [ebp + 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 2
cmp dword [ebx + 0x6b4], ecx
je 0x4a6bbf
lea eax, [ebx + 0x6a4]
cmp dword [eax + 0x14], 0x10
jb 0x4a6b75
mov eax, dword [eax]
push 0x69ad9c
push eax
call fcn.00478171
test al, al
je 0x4a6bbf
mov eax, dword [ebx + 0xd8]
xor edx, edx
cmp dword [eax + 0x38], edx
je 0x4a6bbf
add eax, 0x28
lea ecx, [ebp + 0x2c]
cmp ecx, eax
je 0x4a6ba6
push 0xffffffffffffffff
push edx
push eax
call fcn.004239d7
xor edx, edx
mov eax, dword [ebx + 0xd8]
lea ecx, [ebp - 0x3c]
add eax, 0x40
cmp ecx, eax
je 0x4a6bbf
push 0xffffffffffffffff
push edx
push eax
call fcn.004239d7
mov ecx, dword [ebx + 0xd8]
call fcn.0049a55d
lea eax, [ebx + 0x4c8]
cmp dword [eax + 0x14], 8
jb 0x4a6bd8
mov eax, dword [eax]
test eax, eax
je 0x4a6beb
mov eax, dword [0x7719c0]
test eax, eax
jle 0x4a6beb
dec eax
mov dword [0x7719c0], eax
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push eax
call fcn.004a5687
test al, al
je 0x4a6f0e
test dword [0x770fe4], 0x4000000
je 0x4a6c3d
mov ecx, dword [0x76d730]
sub ecx, dword [ebx + 0x310]
mov eax, dword [0x76d734]
sbb eax, dword [ebx + 0x314]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x130]
push eax
push 0x6a4798
call fcn.00477256
add esp, 0x10
call fcn.00486bbd
push eax
call fcn.00486bc3
push eax
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.0049feb8
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.004a0e33
cmp dword [ebp + 0x14], 8
mov ecx, dword [ebp]
push 4
pop eax
mov byte [ebp - 4], al
jae 0x4a6c78
lea ecx, [ebp]
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x4a6c8a
lea eax, [ebp - 0x84]
push ecx
push eax
call fcn.0045c88a
test eax, eax
jne 0x4a6cd4
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x4a6ca1
lea eax, [ebp]
push eax
call fcn.0045d180
test al, al
je 0x4a6ce9
cmp dword [ebp + 0x14], 8
mov ecx, dword [ebp]
jae 0x4a6cb7
lea ecx, [ebp]
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x4a6cc9
lea eax, [ebp - 0x84]
push ecx
push eax
call fcn.0045c88a
test eax, eax
je 0x4a6ce9
sub esp, 0x18
lea eax, [ebp]
mov ecx, esp
push eax
call fcn.00423207
mov ecx, ebx
call fcn.004af476
cmp dword [ebp + 0x3c], 0
jne 0x4a6d25
lea eax, [ebp - 0xdc]
push eax
call fcn.00468949
push eax
lea ecx, [ebp + 0x2c]
call fcn.004232e6
xor esi, esi
lea ecx, [ebp - 0xdc]
push esi
push 1
call fcn.0042386b
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004239d7
jmp 0x4a6d27
xor esi, esi
sub esp, 0x18
lea eax, [ebp + 0x2c]
mov ecx, esp
push eax
call fcn.00423207
mov ecx, dword [ebx + 0xd8]
call fcn.004fbc4f
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00423207
mov ecx, dword [ebx + 0xd8]
call fcn.004fbb80
test al, al
jne 0x4a6dc3
mov byte [ebp + 0x5f], 1
call fcn.00472fb7
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
mov byte [ebp - 4], 5
jae 0x4a6d76
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.004cd266
push eax
lea ecx, [ebp - 0x3c]
call fcn.004232e6
push esi
push 1
lea ecx, [ebp - 0xf4]
call fcn.0042386b
xor eax, eax
mov byte [ebp + 0x5f], al
call fcn.00472ff8
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00423207
mov ecx, dword [ebx + 0xd8]
call fcn.004fbb80
push 4
pop eax
mov byte [ebp - 4], al
xor eax, eax
mov ecx, ebx
push eax
push 0x1000
call fcn.0049cbcd
or byte [ebx + 0x14c], 8
mov ecx, ebx
call fcn.0049e231
mov eax, dword [ebx + 0x234]
mov dword [ebx + 0x238], eax
mov esi, dword [ebx + 0x244]
mov edi, esi
jmp 0x4a6dfe
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esi]
cmp esi, edi
jne 0x4a6df6
xor eax, eax
mov ecx, ebx
push eax
push 0x201
call fcn.0049cbcd
lea eax, [ebx + 0x1c4]
push eax
lea ecx, [ebp - 0x50]
call fcn.00495131
xor eax, eax
mov byte [ebp - 4], 7
mov esi, eax
cmp dword [ebp - 0x40], eax
jbe 0x4a6e45
push esi
lea ecx, [ebp - 0x50]
call fcn.0041f6af
mov ecx, dword [eax]
call fcn.004e45a1
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x4a6e2f
lea ecx, [ebp - 0x50]
call fcn.0046ba05
mov eax, dword [ebx]
mov ecx, ebx
push 0xffffffffffffffff
push 0
call dword [eax + 0x50]
cmp byte [ebx + 0x150], 3
jne 0x4a6e6a
mov ecx, ebx
call fcn.004af769
jmp 0x4a6eaa
cmp byte [0x76cb60], 0
je 0x4a6eaa
mov ecx, ebx
call fcn.004a2d35
push ebx
call fcn.00488f4e
mov ax, word [ebx + 0x138]
mov ecx, 0xfffe
and ax, cx
push 4
pop ecx
or ax, cx
mov ecx, ebx
movzx eax, ax
push eax
call fcn.004af347
xor eax, eax
mov ecx, ebx
push eax
call fcn.004ab6fc
lea eax, [ebx + 0x454]
cmp dword [eax + 0x14], 0x10
jb 0x4a6eb8
mov eax, dword [eax]
lea ecx, [ebx + 0x4c8]
cmp dword [ecx + 0x14], 8
jb 0x4a6ec6
mov ecx, dword [ecx]
push eax
push 3
xor eax, eax
push eax
mov eax, dword [ebx]
push 0x6a4800
push ecx
mov ecx, ebx
call dword [eax + 0x34]
push eax
call fcn.004cc917
lea ecx, [ebp - 0x50]
call fcn.0046ba05
push 8
push 1
push dword [ebp - 0x50]
call fcn.00423768
xor eax, eax
lea ecx, [ebp - 0x84]
push eax
push 1
mov dword [ebp - 0x50], eax
call fcn.0042386b
lea ecx, [ebp]
jmp 0x4a6fe8
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.004a2a34
test al, al
je 0x4a7024
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.0049f8cc
push eax
lea ecx, [ebp - 0x24]
call fcn.004232e6
xor eax, eax
lea ecx, [ebp - 0x10c]
push eax
push 1
call fcn.0042386b
xor esi, esi
test dword [0x770fe4], 0x20000
je 0x4a6f8b
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4a6f72
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x130]
push eax
push str..alt
call fcn.00477256
add esp, 0xc
test byte [ebx + 0x14c], 0x10
je 0x4a6fc8
mov eax, dword [ebx + 0x234]
cmp dword [eax + 4], esi
je 0x4a6fc8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x130]
push eax
push 0x6a4888
call fcn.00477256
pop ecx
pop ecx
xor eax, eax
push eax
push eax
mov eax, dword [ebx + 0x234]
push dword [eax + 4]
call fcn.004996d5
mov ecx, ebx
call fcn.0049e231
push 1
lea ecx, [ebx + 0x234]
call fcn.004b4b65
push 1
mov ecx, ebx
call fcn.0049b588
lea ecx, [ebp - 0x24]
xor eax, eax
push eax
push 1
call fcn.0042386b
xor eax, eax
lea ecx, [ebp - 0x3c]
push eax
push 1
call fcn.0042386b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
xor eax, eax
push eax
push 1
call fcn.0042386b
cmp byte [ebp + 0x70], 0
je 0x4a738f
or dword [ebp + 0x44], 0xffffffff
or dword [ebp + 0x48], 0xffffffff
jmp 0x4a705e
lea eax, [ebx + 0x68c]
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x4a6f58
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
call fcn.004239d7
jmp 0x4a6f5a
mov eax, dword [esi + 0x14]
add eax, 0x2d
cdq
cmp dword [0x76d734], edx
jg 0x4a7075
jl 0x4a705e
cmp dword [0x76d730], eax
ja 0x4a7075
lea eax, [ebp + 0x44]
push eax
push dword [ebx + 0x1d8]
call fcn.004f8a38
mov esi, eax
test esi, esi
jne 0x4a7045
jmp 0x4a70b8
test byte [0x770fe4], 0x40
je 0x4a708b
push esi
push 0x6a4900
call fcn.00477256
pop ecx
pop ecx
mov edx, dword [esi + 0x18]
push esi
mov ecx, dword [edx + 0x73]
mov eax, ecx
and eax, 0xf0000000
not ecx
dec eax
and ecx, 0xfffffff
xor eax, ecx
mov dword [edx + 0x73], eax
push dword [ebx + 0x1d8]
call fcn.004f8998
inc dword [0x77199c]
cmp byte [ebx + 0x142], 0
je 0x4a70e6
call fcn.00467580
movzx ecx, byte [ebx + 0x142]
xor edx, edx
shr ecx, 1
inc ecx
div ecx
push 0
shl edx, 0xf
add dword [ebx + 0x28c], edx
pop eax
adc dword [ebx + 0x290], eax
test byte [ebx + 0x138], 0x20
jne 0x4a728b
cmp byte [0x74cf6c], 0
mov cl, byte [0x74cf6d]
je 0x4a7167
mov eax, dword [ebx + 0xe4]
cmp eax, 0x80000
ja 0x4a7113
mov cl, 0xa
jmp 0x4a7167
mov dword [ebp + 0x54], eax
fild dword [ebp + 0x54]
test eax, eax
jns 0x4a7123
fadd dword [0x69f580]
fstp dword [ebp + 0x58]
fld dword [ebp + 0x58]
fdiv qword [0x6a5388]
push ecx
push ecx
fstp dword [ebp + 0x64]
fld dword [ebp + 0x64]
fstp qword [esp]
call fcn.00643340
fstp dword [ebp + 0x64]
fld dword [ebp + 0x64]
fstp dword [ebp + 0x64]
fld dword [ebp + 0x64]
pop ecx
pop ecx
call fcn.00629ea0
mov ecx, eax
mov eax, 0xff
cmp ecx, eax
jbe 0x4a715f
mov ecx, eax
cmp ecx, 0xa
jae 0x4a7167
push 0xa
pop ecx
inc byte [ebx + 0x134]
cmp byte [ebx + 0x134], cl
jb 0x4a7187
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
mov byte [ebx + 0x134], al
call fcn.0049af31
inc byte [ebx + 0x136]
cmp byte [ebx + 0x136], 0xa
jb 0x4a71b9
xor eax, eax
test byte [ebx + 0x143], 0x20
mov byte [ebx + 0x136], al
jne 0x4a71b9
mov ecx, ebx
call fcn.0049a19a
test al, al
je 0x4a71b9
mov ecx, ebx
call fcn.004aec4f
mov eax, dword [ebx + 0x2d4]
test eax, eax
jne 0x4a7284
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x148]
test al, al
je 0x4a728b
mov ecx, dword [0x771150]
mov eax, dword [ecx]
call dword [eax + 0x5c]
test al, al
je 0x4a728b
xor eax, eax
mov ecx, ebx
mov esi, eax
mov eax, dword [ebx]
call dword [eax + 0xe8]
test al, al
je 0x4a71ff
inc esi
cmp dword [ebx + 0x1d4], 5
jb 0x4a720b
or esi, 2
mov edi, dword [0x771150]
mov ecx, ebx
call fcn.0049fe9f
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0043bead
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 9
jb 0x4a7234
mov eax, dword [eax]
mov edx, dword [edi]
mov ecx, edi
push esi
push 0
push eax
push 0x489d75
push 0x48695d
lea eax, [ebx + 8]
push eax
call dword [edx + 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
xor eax, eax
push eax
push 1
call fcn.0040abbf
call fcn.00467580
xor edx, edx
mov ecx, 0x12c
div ecx
add edx, 0x4b0
or byte [ebx + 0x2dc], 1
mov dword [ebx + 0x2d4], edx
jmp 0x4a728b
dec eax
mov dword [ebx + 0x2d4], eax
mov ecx, ebx
call fcn.00499a70
mov eax, dword [ebx + 0x1e0]
sub eax, dword [ebx + 0x1dc]
push 4
pop ecx
cmp eax, ecx
jb 0x4a7349
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x168]
test al, al
jne 0x4a7349
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [ebx + 0x288]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp dword [eax + 0x74], 0
jg 0x4a7342
test byte [eax + 0x62], 1
jne 0x4a7342
mov al, byte [0x77974f]
or al, byte [0x7719d2]
or al, byte [0x779882]
jne 0x4a7342
call fcn.0048936f
test eax, eax
jle 0x4a7342
push esi
mov ecx, ebx
call fcn.004a10dd
mov ecx, dword [esi]
mov byte [ebp + 0x64], al
cmp al, byte [ecx + 0x60]
je 0x4a730a
test al, al
jne 0x4a7328
cmp byte [ecx + 0x60], 3
je 0x4a7328
mov eax, dword [ecx + 0x28]
or eax, dword [ecx + 0x2c]
je 0x4a7328
push dword [ecx + 0x1c]
lea eax, [ecx + 0x28]
push eax
call fcn.004e06c3
test al, al
je 0x4a7342
mov eax, dword [0x7712b0]
test eax, eax
jle 0x4a7342
push dword [ebp + 0x64]
dec eax
mov ecx, ebx
push esi
mov dword [0x7712b0], eax
call fcn.0049bf54
mov ecx, ebx
call fcn.004ac85a
movzx esi, word [ebx + 0x138]
mov ecx, ebx
shr esi, 5
not esi
and esi, 1
add dword [ebx + 0x374], esi
push 0
pop eax
adc dword [ebx + 0x378], eax
mov eax, dword [ebx]
call dword [eax + 0xe8]
test al, al
jne 0x4a7380
mov ecx, ebx
call fcn.004adf8a
test al, al
je 0x4a738f
add dword [ebx + 0x37c], esi
push 0
pop eax
adc dword [ebx + 0x380], eax
mov al, byte [ebx + 0x143]
test al, 2
je 0x4a73ff
and al, 0xfd
lea ecx, [ebp - 0x6c]
mov byte [ebx + 0x143], al
lea eax, [ebx + 0x1c4]
push eax
call fcn.00495131
xor eax, eax
mov dword [ebp - 4], 0xa
mov esi, eax
cmp dword [ebp - 0x5c], eax
jbe 0x4a73df
push esi
lea ecx, [ebp - 0x6c]
call fcn.0041f6af
mov ecx, dword [eax]
test byte [ecx + 0x17b], 2
je 0x4a73d9
call fcn.004e2981
inc esi
cmp esi, dword [ebp - 0x5c]
jb 0x4a73c0
lea ecx, [ebp - 0x6c]
call fcn.0046ba05
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0046ba05
push 8
push 1
push dword [ebp - 0x6c]
call fcn.00423768
cmp byte [ebp + 0x70], 0
je 0x4a779f
xor eax, eax
lea ecx, [ebp - 0x98]
mov edi, eax
mov dword [ebp + 0x58], eax
mov esi, eax
mov dword [ebp + 0x70], edi
lea eax, [ebx + 0x1c4]
mov dword [ebp + 0x64], esi
push eax
call fcn.00495131
xor eax, eax
mov dword [ebp - 4], 0xb
cmp dword [ebp - 0x88], eax
jbe 0x4a748d
mov ebx, eax
push ebx
lea ecx, [ebp - 0x98]
call fcn.0041f6af
mov edi, dword [eax]
test byte [edi + 0x17b], 2
je 0x4a7461
push dword [ebp + 0x78]
mov ecx, edi
push dword [ebp + 0x74]
call fcn.004e3200
mov eax, dword [ebp + 0x58]
add eax, dword [edi + 0x9c]
add esi, dword [edi + 0x94]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
add eax, dword [edi + 0x58]
inc ebx
mov dword [ebp + 0x70], eax
cmp ebx, dword [ebp - 0x88]
jb 0x4a743d
mov ebx, dword [ebp + 0x4c]
mov edi, eax
mov dword [ebp + 0x64], esi
lea ecx, [ebp - 0x98]
call fcn.0046ba05
xor eax, eax
mov dword [ebx + 0x440], esi
push eax
call fcn.0048f232
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], edx
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0049010a
push eax
lea ecx, [ebx + 0x5dc]
call fcn.00498f82
imul eax, dword [ebx + 0x44c], 0x7f
mov ecx, dword [ebp + 0x58]
mov dword [ebx + 0x448], ecx
mov dword [ebx + 0x444], edi
add eax, ecx
add eax, eax
shr eax, 8
mov dword [ebx + 0x44c], eax
mov al, byte [ebx + 0x2dd]
movzx edx, al
cmp edi, dword [0x74d038]
jae 0x4a7516
cmp esi, dword [0x74d034]
jae 0x4a7516
test al, al
je 0x4a751d
dec al
mov byte [ebx + 0x2dd], al
jmp 0x4a751d
mov byte [ebx + 0x2dd], 0xf
xor al, al
cmp al, byte [ebx + 0x2dd]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp eax, edx
sbb eax, eax
neg eax
cmp eax, ecx
je 0x4a7544
xor eax, eax
mov ecx, ebx
push eax
push 0x10000
call fcn.0049cbcd
inc dword [ebx + 0x2e0]
xor edx, edx
mov eax, dword [ebx + 0x2e0]
push 0x3c
pop edi
div edi
test edx, edx
jne 0x4a7610
mov ecx, ebx
call fcn.004adff3
cmp byte [0x74d022], 0
je 0x4a759b
mov ecx, ebx
call fcn.0049fa4a
cmp dword [ebx + 0x1a8], eax
jae 0x4a758b
mov eax, dword [0x76d75c]
cmp eax, dword [0x74cf84]
jb 0x4a759b
cmp byte [ebx + 0x143], 0x80
jae 0x4a759b
mov ecx, ebx
call fcn.0049cd54
mov ecx, ebx
call fcn.0049da9d
xor eax, eax
push eax
call fcn.0048f232
mov esi, dword [ebx + 0x174]
mov ecx, dword [ebx + 0x178]
add esi, 0xe4c
adc ecx, 0
cmp ecx, edx
jg 0x4a7610
jl 0x4a75c9
cmp esi, eax
jae 0x4a7610
mov ecx, dword [0x771150]
xor eax, eax
push 0x48b04c
push eax
lea eax, [ebx + 8]
mov edx, dword [ecx]
push eax
xor eax, eax
push eax
call dword [edx + 0x18]
call fcn.0063ccbd
cdq
idiv edi
push 0
mov eax, edx
cdq
mov edi, eax
mov esi, edx
pop eax
sub edi, 0x1e
push eax
sbb esi, eax
call fcn.0048f232
add eax, edi
mov dword [ebx + 0x174], eax
adc edx, esi
mov dword [ebx + 0x178], edx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00496f6d
test byte [ebx + 0x14d], 8
mov eax, dword [0x76d734]
mov edi, dword [0x76d730]
mov dword [ebp + 0x70], eax
jne 0x4a7798
push 4
pop eax
test byte [ebx + 0x14c], al
je 0x4a7798
lea esi, [ebx + 0x214]
cmp dword [esi + 0x14], 0x10
jb 0x4a7659
mov eax, dword [esi]
jmp 0x4a765b
mov eax, esi
push 0x6a4944
push eax
call fcn.00478171
test al, al
jne 0x4a7689
cmp dword [esi + 0x14], 0x10
jb 0x4a7674
mov eax, dword [esi]
jmp 0x4a7676
mov eax, esi
push 0x69ad94
push eax
call fcn.00478171
test al, al
je 0x4a7798
mov eax, dword [ebx + 0x22c]
mov ecx, dword [0x76d51c]
cmp eax, ecx
jl 0x4a769b
mov eax, ecx
cdq
add eax, dword [ebx + 0x310]
adc edx, dword [ebx + 0x314]
cmp edx, dword [ebp + 0x70]
ja 0x4a7798
jb 0x4a76bb
cmp eax, edi
jae 0x4a7798
or byte [ebx + 0x14d], 8
push 0xc4
call fcn.006291d8
pop ecx
mov dword [ebp + 0x70], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x4a76e4
mov ecx, eax
call fcn.004619ed
jmp 0x4a76e6
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [ebp + 0x60], ecx
test ecx, ecx
je 0x4a76f9
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 4], 0xd
push eax
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0045b92c
mov ecx, dword [ebp + 0x60]
push eax
lea ecx, [ecx + 8]
call fcn.004232e6
xor eax, eax
lea ecx, [ebp - 0x13c]
push eax
push 1
call fcn.0042386b
xor eax, eax
mov ecx, esi
push eax
push 1
call fcn.00409c63
mov eax, dword [ebp + 0x60]
add eax, 8
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0043bead
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.0040a669
xor eax, eax
mov byte [ebp - 4], 0xd
push eax
push 1
lea ecx, [ebp - 0x154]
call fcn.0040abbf
cmp dword [esi + 0x14], 0x10
jb 0x4a7777
mov esi, dword [esi]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0x60]
push eax
push 0x4a5cac
push ebx
push esi
call fcn.00462682
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x60]
call fcn.0042326b
mov ecx, ebx
call fcn.0049963b
lea ecx, [ebp + 0x53]
lea eax, [ebx + 0x240]
push ecx
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp + 0x70], eax
call fcn.00484586
mov ebx, dword [ebp - 0xb4]
mov dword [ebp - 4], 0xf
mov edi, dword [ebx]
jmp 0x4a77f1
mov eax, dword [ebp + 0x4c]
lea ecx, [edi + 8]
push ecx
mov ecx, dword [ebp + 0x70]
mov esi, dword [eax + 0x244]
lea eax, [ebp + 0x54]
push eax
call fcn.004b4044
cmp dword [ebp + 0x54], esi
je 0x4a77ef
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edi, dword [edi]
cmp edi, ebx
jne 0x4a77c9
lea ecx, [ebp - 0xb8]
call fcn.0052429b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x68]
pop ebp
ret 0xc