Function at 0x496820
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e0820
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x50f52c]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xf4]
push 0x20
push 0xe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ebx
call fcn.004a4190
mov edi, dword [ebx + 0x10]
mov esi, eax
cmp dword [ebx + 0xc], edi
jbe 0x496882
call fcn.004b32e0
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx]
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x10]
jbe 0x496895
call fcn.004b32e0
mov eax, dword [ebx]
test ebp, ebp
je 0x49689f
cmp ebp, eax
je 0x4968a4
call fcn.004b32e0
sub edi, dword [esp + 0x18]
sar edi, 2
mov dword [esi + 8], edi
mov edi, dword [ebx + 0x28]
cmp dword [ebx + 0x24], edi
jbe 0x4968bb
call fcn.004b32e0
mov eax, dword [ebx + 0x24]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x28]
jbe 0x4968cf
call fcn.004b32e0
mov eax, dword [ebx + 0x18]
test ebp, ebp
je 0x4968da
cmp ebp, eax
je 0x4968df
call fcn.004b32e0
sub edi, dword [esp + 0x18]
sar edi, 2
shr edi, 1
mov dword [esi + 0xc], edi
mov edi, dword [ebx + 0x50]
cmp dword [ebx + 0x4c], edi
jbe 0x4968f8
call fcn.004b32e0
mov ecx, ebx
mov ebp, dword [ecx + 0x4c]
mov ebx, dword [ecx + 0x40]
cmp ebp, dword [ecx + 0x50]
jbe 0x49690e
call fcn.004b32e0
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x40]
test ebx, ebx
je 0x496919
cmp ebx, eax
je 0x496922
call fcn.004b32e0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
sub edi, ebp
sar edi, 2
mov dword [esi + 0x10], edi
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x14], eax
mov ecx, dword [ecx + 0x38]
mov dword [esi + 0x18], ecx
mov edx, dword [edx]
test dword [edx + 8], 0x100000
je 0x496985
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x30]
mov ebx, eax
and ebx, edx
cmp ebx, edx
je 0x49695f
mov edx, dword [edi + 0x34]
mov ebx, eax
and ebx, edx
cmp ebx, edx
jne 0x496967
mov edx, dword [edi + 0x38]
or edx, eax
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x30]
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x49697d
mov eax, dword [edi + 0x34]
mov edx, ecx
and edx, eax
cmp edx, eax
jne 0x496985
mov eax, dword [edi + 0x38]
or eax, ecx
mov dword [esi + 0x18], eax
mov edi, dword [esp + 0x28]
mov al, byte [edi + 0x30]
mov edx, dword [esp + 0x14]
mov byte [esi + 0x1c], al
cmp byte [edi + 0x31], 0
sete cl
mov byte [esi + 0x1d], cl
mov eax, dword [edx]
sub esi, dword [eax + 0x12c]
mov dword [esp + 0x40], esi
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x4969b6
call fcn.004b32e0
mov ebx, dword [edi]
mov ebp, esi
mov esi, dword [edi + 0x10]
mov dword [esp + 0x2c], esi
cmp dword [edi + 0xc], esi
jbe 0x4969cb
call fcn.004b32e0
mov ecx, dword [edi]
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x4969db
cmp ebx, dword [esp + 0x20]
je 0x4969e0
call fcn.004b32e0
cmp ebp, esi
je 0x496b2e
test ebx, ebx
jne 0x496a7d
call fcn.004b32e0
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x496a01
call fcn.004b32e0
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov eax, dword [esi + 0x130]
mov ecx, dword [esi + 0x128]
xor edx, edx
cmp word [ebp + 2], dx
setne dl
add esi, 0x128
sub ecx, eax
add edx, 2
add edx, edx
mov edi, edx
cmp ecx, edi
jae 0x496a3b
sub edx, dword [esi + 4]
mov ecx, esi
add edx, eax
call fcn.004b2540
mov eax, dword [esi + 8]
add edi, eax
mov dword [esp + 0x18], eax
mov dword [esi + 8], edi
test ebx, ebx
jne 0x496a84
call fcn.004b32e0
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x496a5c
call fcn.004b32e0
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xc], 0
movzx ecx, word [ebp]
mov esi, edx
je 0x496a88
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov edx, dword [eax]
call fcn.004a0d60
movzx eax, ax
jmp 0x496a8b
mov eax, dword [ebx]
jmp 0x4969f7
mov eax, dword [ebx]
jmp 0x496a52
movzx eax, cx
mov edi, dword [esp + 0x18]
mov word [edi], ax
test ebx, ebx
jne 0x496ae8
call fcn.004b32e0
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x496aa7
call fcn.004b32e0
cmp word [ebp + 2], 0
je 0x496aff
test ebx, ebx
jne 0x496aec
call fcn.004b32e0
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x496ac3
call fcn.004b32e0
cmp byte [esi + 0xc], 0
movzx ecx, word [ebp + 2]
je 0x496af0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [eax]
call fcn.004a0d60
movzx eax, ax
mov word [edi + 2], ax
xor eax, eax
mov word [edi + 4], ax
jmp 0x496b05
mov eax, dword [ebx]
jmp 0x496a9d
mov eax, dword [ebx]
jmp 0x496ab9
movzx eax, cx
mov word [edi + 2], ax
xor eax, eax
mov word [edi + 4], ax
jmp 0x496b05
xor ecx, ecx
mov word [edi + 2], cx
test ebx, ebx
jne 0x496b2a
call fcn.004b32e0
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x496b1a
call fcn.004b32e0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
add ebp, 4
jmp 0x4969d1
mov eax, dword [ebx]
jmp 0x496b10
mov esi, dword [edi + 0x24]
cmp esi, dword [edi + 0x28]
jbe 0x496b3b
call fcn.004b32e0
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
cmp dword [edi + 0x24], eax
jbe 0x496b57
call fcn.004b32e0
mov eax, dword [edi + 0x18]
mov dword [esp + 0x38], eax
mov edi, edi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x496b6e
cmp esi, dword [esp + 0x38]
je 0x496b73
call fcn.004b32e0
mov edi, dword [esp + 0x24]
cmp edi, dword [esp + 0x2c]
je 0x49747d
test esi, esi
jne 0x496f03
call fcn.004b32e0
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x496b9a
call fcn.004b32e0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov al, byte [edi + 0xc]
mov bx, word [esi]
mov bp, word [esi + 2]
mov ecx, dword [edi + 4]
mov word [esp + 0x30], bx
mov word [esp + 0x32], bp
test al, al
je 0x496bd2
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x30]
call fcn.004a0d60
mov bx, ax
mov word [esp + 0x30], bx
mov al, byte [edi + 0xc]
mov ecx, dword [edi + 4]
test al, al
je 0x496bf1
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x32]
call fcn.004a0d60
mov bp, ax
mov word [esp + 0x32], bp
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x496f0a
call fcn.004b32e0
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x496c16
call fcn.004b32e0
mov ecx, dword [esp + 0x20]
add esi, 4
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x496f11
call fcn.004b32e0
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x496c36
call fcn.004b32e0
mov eax, dword [esp + 0x24]
mov cx, word [eax + 2]
mov si, word [eax]
mov al, byte [edi + 0xc]
mov word [esp + 0x1a], cx
mov ecx, dword [edi + 4]
mov word [esp + 0x18], si
test al, al
je 0x496c6a
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
call fcn.004a0d60
mov si, ax
mov word [esp + 0x18], si
mov al, byte [edi + 0xc]
mov ecx, dword [edi + 4]
test al, al
je 0x496c86
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1a]
call fcn.004a0d60
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x496f18
call fcn.004b32e0
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x496ca7
call fcn.004b32e0
add dword [esp + 0x24], 4
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], ecx
mov word [esp + 0xb8], dx
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0xec], ecx
mov dword [esp + 0x90], ecx
mov word [esp + 0x80], ax
mov edx, dword [edi]
test dword [edx + 8], 0x200000
mov byte [esp + 0xec], 1
je 0x496f1f
mov dx, word [esp + 0x1a]
mov word [esp + 0xd4], ax
mov word [esp + 0xdc], ax
mov word [esp + 0xd0], bx
mov word [esp + 0xd2], bp
mov word [esp + 0xd8], si
mov word [esp + 0xda], dx
lea eax, [esp + 0xd4]
cmp bp, cx
jne 0x496d49
lea eax, [esp + 0xd2]
push eax
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0xa0]
push edx
call fcn.004901b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0xf8], 2
call fcn.00401750
mov ebx, 8
mov byte [esp + 0xec], 1
cmp dword [esp + 0xb0], ebx
jb 0x496da1
mov eax, dword [esp + 0x9c]
push eax
call fcn.004b29fa
add esp, 4
cmp word [esp + 0xda], 0
lea eax, [esp + 0xdc]
jne 0x496dba
lea eax, [esp + 0xda]
push eax
lea ecx, [esp + 0xdc]
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0xa0]
push edx
call fcn.004901b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xf8], 3
call fcn.00401750
mov byte [esp + 0xec], 1
cmp dword [esp + 0xb0], ebx
jb 0x496e0d
mov eax, dword [esp + 0x9c]
push eax
call fcn.004b29fa
add esp, 4
cmp dword [esp + 0xc8], 0
jne 0x496e81
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xb0], 7
mov word [esp + 0x9c], cx
mov dword [esp + 0xac], 1
mov word [esp + 0x9e], dx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0xf8], 4
call fcn.00401750
mov byte [esp + 0xec], 1
cmp dword [esp + 0xb0], ebx
jb 0x496e81
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004b29fa
add esp, 4
mov esi, dword [esp + 0x90]
test esi, esi
jne 0x49718d
xor edx, edx
xor eax, eax
mov dword [esp + 0xb0], 7
mov word [esp + 0x9c], dx
mov dword [esp + 0xac], 1
mov word [esp + 0x9e], ax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0xf8], 5
call fcn.00401750
mov byte [esp + 0xec], 1
cmp dword [esp + 0xb0], ebx
jb 0x497186
mov edx, dword [esp + 0x9c]
push edx
call fcn.004b29fa
add esp, 4
jmp 0x497186
mov eax, dword [esi]
jmp 0x496b90
mov eax, dword [ecx]
jmp 0x496c08
mov eax, dword [ecx]
jmp 0x496c2c
mov eax, dword [eax]
jmp 0x496c99
cmp bp, cx
je 0x496fc5
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0xbc]
push ecx
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xc4]
call fcn.00490e80
mov ecx, dword [esp + 0xcc]
mov edi, dword [esp + 0xb8]
mov eax, edi
cmp ecx, 8
jae 0x496f6a
lea eax, [esp + 0xb8]
mov edx, dword [esp + 0xc8]
lea esi, [eax + edx*2]
test esi, esi
je 0x496f9f
mov eax, edi
cmp ecx, 8
jae 0x496f86
lea eax, [esp + 0xb8]
cmp eax, esi
ja 0x496f9f
mov eax, edi
cmp ecx, 8
jae 0x496f98
lea eax, [esp + 0xb8]
lea ecx, [eax + edx*2]
cmp esi, ecx
jbe 0x496fa4
call fcn.004b32e0
mov edx, dword [esp + 0x32]
push edx
push esi
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xc4]
call fcn.00490e80
jmp 0x49702e
xor ecx, ecx
mov dword [esp + 0xb0], 7
mov word [esp + 0x9c], bx
mov dword [esp + 0xac], 1
mov word [esp + 0x9e], cx
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xc0]
mov byte [esp + 0xf8], 6
call fcn.00401750
cmp dword [esp + 0xb0], 8
mov byte [esp + 0xec], 1
jb 0x49702e
mov eax, dword [esp + 0x9c]
push eax
call fcn.004b29fa
add esp, 4
cmp word [esp + 0x1a], 0
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x94]
mov eax, edi
je 0x497119
cmp edx, 8
jae 0x497056
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x90]
lea esi, [eax + ecx*2]
test esi, esi
je 0x49708b
mov eax, edi
cmp edx, 8
jae 0x497072
lea eax, [esp + 0x80]
cmp eax, esi
ja 0x49708b
mov eax, edi
cmp edx, 8
jae 0x497084
lea eax, [esp + 0x80]
lea ecx, [eax + ecx*2]
cmp esi, ecx
jbe 0x497090
call fcn.004b32e0
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x8c]
call fcn.00490e80
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x80]
mov eax, edi
cmp ecx, 8
jae 0x4970cb
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
lea esi, [eax + edx*2]
test esi, esi
je 0x497100
mov eax, edi
cmp ecx, 8
jae 0x4970e7
lea eax, [esp + 0x80]
cmp eax, esi
ja 0x497100
mov eax, edi
cmp ecx, 8
jae 0x4970f9
lea eax, [esp + 0x80]
lea ecx, [eax + edx*2]
cmp esi, ecx
jbe 0x497105
call fcn.004b32e0
mov edx, dword [esp + 0x1a]
push edx
lea eax, [esp + 0x80]
push esi
push eax
lea eax, [esp + 0x68]
jmp 0x497174
cmp edx, 8
jae 0x497125
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x90]
lea esi, [eax + ecx*2]
test esi, esi
je 0x49715a
mov eax, edi
cmp edx, 8
jae 0x497141
lea eax, [esp + 0x80]
cmp eax, esi
ja 0x49715a
mov eax, edi
cmp edx, 8
jae 0x497153
lea eax, [esp + 0x80]
lea ecx, [eax + ecx*2]
cmp esi, ecx
jbe 0x49715f
call fcn.004b32e0
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x80]
push esi
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x8c]
call fcn.00490e80
mov ebx, 8
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xcc], ebx
jae 0x4971a4
lea eax, [esp + 0xb8]
mov edx, dword [esp + 0xc8]
cmp esi, edx
jae 0x4971b1
mov edx, esi
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x80]
mov ecx, ebp
cmp edi, ebx
jae 0x4971cc
lea ecx, [esp + 0x80]
test edx, edx
jbe 0x4971ec
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x497406
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4971d0
mov ebx, 8
mov eax, dword [esp + 0xc8]
cmp esi, eax
jb 0x497430
xor edx, edx
cmp esi, eax
setne dl
mov eax, edx
test eax, eax
jl 0x497430
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x14]
lea edi, [esi + eax]
mov esi, dword [ecx]
mov eax, dword [esi + 0x130]
mov edx, dword [esi + 0x128]
add esi, 0x128
lea edi, [edi + edi + 4]
sub edx, eax
cmp edx, edi
jae 0x497246
mov edx, edi
sub edx, dword [esi + 4]
mov ecx, esi
add edx, eax
call fcn.004b2540
mov ebp, dword [esi + 8]
add edi, ebp
mov dword [esi + 8], edi
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xb8]
mov eax, edx
cmp ecx, ebx
jae 0x497269
lea eax, [esp + 0xb8]
mov edi, dword [esp + 0xc8]
lea esi, [eax + edi*2]
test esi, esi
je 0x49729c
mov eax, edx
cmp ecx, ebx
jae 0x497284
lea eax, [esp + 0xb8]
cmp eax, esi
ja 0x49729c
mov eax, edx
cmp ecx, ebx
jae 0x497295
lea eax, [esp + 0xb8]
lea eax, [eax + edi*2]
cmp esi, eax
jbe 0x4972af
call fcn.004b32e0
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xb8]
cmp ecx, ebx
jb 0x497424
mov edi, edx
test edx, edx
je 0x4972e9
mov eax, edx
cmp ecx, ebx
jae 0x4972ca
lea eax, [esp + 0xb8]
cmp eax, edi
ja 0x4972e9
mov eax, edx
cmp ecx, ebx
jae 0x4972db
lea eax, [esp + 0xb8]
mov ecx, dword [esp + 0xc8]
lea edx, [eax + ecx*2]
cmp edi, edx
jbe 0x4972ee
call fcn.004b32e0
sub esi, edi
sar esi, 1
mov eax, esi
test eax, eax
jle 0x497306
add eax, eax
push eax
push edi
push eax
push ebp
call fcn.004b2a82
add esp, 0x10
mov ecx, dword [esp + 0xc8]
xor eax, eax
mov word [ebp + ecx*2], ax
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x80]
lea esi, [ebp + edx*2 + 2]
cmp dword [esp + 0x94], ebx
jae 0x497336
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x7c]
lea eax, [eax + ecx*2]
push edx
push eax
lea ecx, [esp + 0x54]
call fcn.00406e60
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebx
jae 0x497366
lea eax, [esp + 0x80]
lea ecx, [esp + 0x7c]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.00406e60
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x497393
add eax, eax
push eax
push ecx
push eax
push esi
call fcn.004b2a82
add esp, 0x10
mov eax, dword [esp + 0x90]
xor edx, edx
mov word [esi + eax*2], dx
cmp dword [esp + 0x94], ebx
jb 0x4973b9
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], dx
mov dword [esp + 0xec], 0xffffffff
cmp dword [esp + 0xcc], ebx
jb 0x496b60
mov eax, dword [esp + 0xb8]
push eax
call fcn.004b29fa
add esp, 4
jmp 0x496b60
mov cx, bx
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
je 0x4971e7
mov ebx, 8
jmp 0x497204
lea edi, [esp + 0xb8]
jmp 0x4972bd
cmp edi, ebx
jb 0x49743d
push ebp
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], cx
cmp dword [esp + 0xcc], ebx
jb 0x497476
mov edx, dword [esp + 0xb8]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
jmp 0x4977a6
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0x4c]
cmp esi, dword [edi + 0x50]
jbe 0x49748e
call fcn.004b32e0
mov ebp, dword [edi + 0x40]
mov ebx, esi
mov esi, dword [edi + 0x50]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], esi
cmp dword [edi + 0x4c], esi
jbe 0x4974a8
call fcn.004b32e0
mov eax, dword [edi + 0x40]
mov dword [esp + 0x44], eax
nop
test ebp, ebp
je 0x4974ba
cmp ebp, dword [esp + 0x44]
je 0x4974bf
call fcn.004b32e0
cmp ebx, esi
je 0x497793
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], cx
mov dword [esp + 0xec], eax
test ebp, ebp
jne 0x497592
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x497508
call fcn.004b32e0
cmp word [ebx + 2], 0
lea esi, [ebx + 2]
je 0x4975a4
test ebp, ebp
jne 0x49759a
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x49752f
call fcn.004b32e0
mov dx, word [ebx]
mov word [esp + 0xd0], dx
test ebp, ebp
jne 0x49759f
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x49754f
call fcn.004b32e0
mov ax, word [esi]
xor ecx, ecx
lea edx, [esp + 0xd4]
push edx
mov edx, dword [esp + 0x18]
mov word [esp + 0xd6], ax
mov word [esp + 0xd8], cx
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [edx + 4]
call fcn.00494d70
mov byte [esp + 0xec], 8
jmp 0x4975f4
mov eax, dword [ebp]
jmp 0x4974fe
mov eax, dword [ebp]
jmp 0x497525
mov eax, dword [ebp]
jmp 0x497545
test ebp, ebp
jne 0x497764
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4975bd
call fcn.004b32e0
test ebp, ebp
jne 0x49776c
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4975d6
call fcn.004b32e0
mov edx, dword [esp + 0x14]
push esi
push ebx
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [edx + 4]
call fcn.00494d70
mov byte [esp + 0xec], 9
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa4]
call fcn.00401750
cmp dword [esp + 0xcc], 8
mov byte [esp + 0xec], 7
jb 0x497627
mov eax, dword [esp + 0xb8]
push eax
call fcn.004b29fa
add esp, 4
mov eax, dword [esp + 0xac]
test eax, eax
je 0x497778
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov edx, dword [esi + 0x130]
add esi, 0x128
lea edi, [eax + eax + 2]
mov eax, dword [esi]
sub eax, edx
cmp eax, edi
jae 0x497660
sub edx, dword [esi + 4]
mov ecx, esi
add edx, edi
call fcn.004b2540
mov ebp, dword [esi + 8]
lea ecx, [edi + ebp]
mov dword [esi + 8], ecx
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x497681
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0xac]
lea ecx, [esp + 0x98]
push ecx
lea eax, [eax + edx*2]
push eax
lea ecx, [esp + 0x54]
call fcn.00406e60
mov eax, dword [esp + 0x9c]
mov esi, 8
cmp dword [esp + 0xb0], esi
jae 0x4976b9
lea eax, [esp + 0x9c]
lea edx, [esp + 0x98]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00406e60
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x4976e9
add eax, eax
push eax
push ecx
push eax
push ebp
call fcn.004b2a82
add esp, 0x10
mov ecx, dword [esp + 0xac]
xor eax, eax
mov word [ebp + ecx*2], ax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x497774
call fcn.004b32e0
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x497710
call fcn.004b32e0
add ebx, 4
mov dword [esp + 0xec], 0xffffffff
cmp dword [esp + 0xb0], esi
jb 0x497737
mov edx, dword [esp + 0x9c]
push edx
call fcn.004b29fa
add esp, 4
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
jmp 0x4974b0
mov eax, dword [ebp]
jmp 0x4975b3
mov eax, dword [ebp]
jmp 0x4975cc
mov eax, dword [eax]
jmp 0x497706
lea ecx, [esp + 0x98]
mov dword [esp + 0xec], 0xffffffff
call fcn.00490320
xor eax, eax
jmp 0x4977a6
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x12c]
add eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.004b3057
add esp, 0xdc
ret 8