Function at 0x475920
Capabilities:
Encode data using xor
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 8]
fld dword [ebx]
push esi
push edi
mov edi, ecx
fadd dword [edi + 0x40]
mov dword [esp + 0x48], edi
fstp dword [esp + 0x30]
fld dword [edi + 0x44]
fadd dword [ebx + 4]
fstp dword [esp + 0x34]
fld dword [edi + 0x48]
fadd dword [ebx + 8]
fstp dword [esp + 0x38]
fld dword [edi + 0x4c]
fadd dword [ebx + 0xc]
fstp dword [esp + 0x3c]
fld dword [esp + 0x30]
fmul dword [edi + 0x60]
fstp dword [esp + 0x30]
fld dword [edi + 0x64]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [edi + 0x68]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [edi + 0x6c]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x30]
fld dword [0x4c59c0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4759a6
fstp dword [esp + 0x30]
jmp 0x4759a8
fstp st(0)
fld dword [esp + 0x34]
fld dword [0x4c59c4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4759c3
fstp dword [esp + 0x34]
jmp 0x4759c5
fstp st(0)
fld dword [esp + 0x38]
fld dword [0x4c59c8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4759e0
fstp dword [esp + 0x38]
jmp 0x4759e2
fstp st(0)
fld dword [esp + 0x3c]
fld dword [0x4c59cc]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4759fd
fstp dword [esp + 0x3c]
jmp 0x4759ff
fstp st(0)
fldz
fcom dword [esp + 0x30]
fnstsw ax
test ah, 5
jnp 0x475a10
fst dword [esp + 0x30]
fcom dword [esp + 0x34]
fnstsw ax
test ah, 5
jnp 0x475a1f
fst dword [esp + 0x34]
fcom dword [esp + 0x38]
fnstsw ax
test ah, 5
jnp 0x475a2e
fst dword [esp + 0x38]
fcom dword [esp + 0x3c]
fnstsw ax
test ah, 5
jnp 0x475a3f
fstp dword [esp + 0x3c]
jmp 0x475a41
fstp st(0)
fld dword [esp + 0x30]
fld qword [0x4b9f08]
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fld dword [esp + 0x34]
shr eax, 7
fadd st(1)
movzx eax, ax
mov dword [esp + 0x50], eax
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
fld dword [esp + 0x38]
shr ecx, 7
fadd st(1)
movzx ecx, cx
mov dword [esp + 0x54], ecx
mov ecx, dword [0x4c6060]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fadd dword [esp + 0x3c]
shr edx, 7
movzx edx, dx
fstp dword [esp + 0x3c]
mov esi, dword [esp + 0x3c]
shr esi, 7
movzx eax, si
mov esi, dword [edi + 0xa4]
push ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esi + 0x20]
mov esi, dword [eax + 0x20]
and edx, 0xfffffff0
lea ecx, [esi + edx]
cmp ecx, dword [eax + 0x2c]
ja 0x475ad0
mov dword [eax + 0x20], ecx
jmp 0x475adc
mov esi, dword [eax]
push edx
mov edx, dword [esi + 0x14]
mov ecx, eax
call edx
mov esi, eax
mov ecx, dword [edi + 0xa4]
sar ecx, 4
mov edx, esi
js 0x475b02
fldz
mov eax, edx
fst dword [eax]
add edx, 0x10
sub ecx, 1
fst dword [eax + 4]
fst dword [eax + 8]
fst dword [eax + 0xc]
jns 0x475aeb
fstp st(0)
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x475b0f
lea eax, [edi + 0xac]
mov ecx, 0x11
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
mov edi, dword [esp + edi + 0x50]
mov ebx, edx
sar ebx, 1
movzx ebx, word [eax + ebx*4]
cmp edi, ebx
jae 0x475b98
lea ebx, [eax + edx*4 - 0x10]
add eax, 4
cmp eax, ebx
jae 0x475b7b
movzx edx, word [eax + 0xc]
cmp edx, edi
ja 0x475b7b
movzx edx, word [eax + 2]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax + 6]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax + 0xa]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax + 0xe]
xor byte [edx + esi], cl
add edx, esi
add eax, 0x10
cmp eax, ebx
jb 0x475b48
movzx edx, word [eax]
cmp edx, edi
ja 0x475bf7
movzx edx, word [eax + 2]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax + 4]
add eax, 4
cmp edx, edi
jbe 0x475b82
jmp 0x475bf7
lea ebx, [eax + 0x10]
lea eax, [eax + edx*4 - 8]
cmp eax, ebx
jb 0x475bd6
movzx edx, word [eax - 0xc]
cmp edx, edi
jbe 0x475bd6
movzx edx, word [eax + 2]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax - 2]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax - 6]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax - 0xa]
xor byte [edx + esi], cl
add edx, esi
sub eax, 0x10
cmp eax, ebx
jae 0x475ba3
movzx edx, word [eax]
cmp edx, edi
jbe 0x475bf4
lea ecx, [ecx]
movzx edx, word [eax + 2]
xor byte [edx + esi], cl
add edx, esi
movzx edx, word [eax - 4]
sub eax, 4
cmp edx, edi
ja 0x475be0
add eax, 4
mov edx, dword [esp + 0x14]
add dword [esp + 0x2c], 0xc
mov dword [esp + edx + 0x94], eax
add edx, 4
add ecx, ecx
cmp edx, 0xc
mov dword [esp + 0x14], edx
jl 0x475b20
mov ecx, dword [0x4c6060]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x20]
lea edx, [edi*4 + 0x10]
and edx, 0xfffffff0
lea ecx, [ebx + edx]
cmp ecx, dword [eax + 0x2c]
ja 0x475c4a
mov dword [eax + 0x20], ecx
mov dword [esp + 0x2c], ebx
jmp 0x475c5a
mov edi, dword [eax]
push edx
mov edx, dword [edi + 0x14]
mov ecx, eax
call edx
mov ebx, eax
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 0x10], eax
jle 0x475c73
fld1
fst dword [ebx + eax*4]
add eax, 1
cmp eax, dword [ecx + 0x10]
jl 0x475c66
fstp st(0)
mov edi, dword [esp + 0x48]
mov edx, dword [edi + 0xa4]
mov ecx, dword [edi + 0xa0]
sar edx, 2
lea edx, [esi + edx*4 + 4]
cmp esi, edx
mov eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], edx
jae 0x475f6d
lea edi, [ecx + 0x3c]
mov dword [esp + 0x1c], edi
lea edi, [ecx + 0x2c]
mov dword [esp + 0x20], edi
lea edi, [ecx + 0x1c]
add ecx, 0xc
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
mov ecx, 0xc0
mov edi, dword [eax]
add edi, 0x1010101
test edi, 0x8080808
jne 0x475d51
mov edi, dword [eax + 4]
add edi, 0x1010101
test edi, 0x8080808
jne 0x475d30
mov edi, dword [eax + 8]
add edi, 0x1010101
test edi, 0x8080808
jne 0x475d0f
add dword [esp + 0x28], ecx
add dword [esp + 0x24], ecx
add dword [esp + 0x20], ecx
add dword [esp + 0x1c], ecx
add eax, 0xc
mov dword [esp + 0x14], eax
jmp 0x475f61
mov edi, 0x80
add dword [esp + 0x28], edi
add dword [esp + 0x24], edi
add dword [esp + 0x20], edi
add dword [esp + 0x1c], edi
add eax, 8
mov dword [esp + 0x14], eax
jmp 0x475f61
mov edi, 0x40
add dword [esp + 0x28], edi
add dword [esp + 0x24], edi
add dword [esp + 0x20], edi
add dword [esp + 0x1c], edi
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x475f61
cmp byte [eax], 0x77
jne 0x475dc2
mov eax, dword [esp + 0x28]
test byte [eax], 1
jne 0x475dc2
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edi, edi
cmp dword [edx + 0x10], edi
mov dword [esp + 0x18], ecx
jle 0x475dc2
mov ecx, dword [esp + 0x18]
fld dword [ebx + edi*4]
mov edx, dword [esp + 0x28]
fstp dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [edx]
mov eax, dword [eax + 4]
push edi
push edx
call eax
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fld dword [esp + 0xc]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x475da3
fstp st(0)
jmp 0x475da5
fstp st(1)
mov ecx, dword [ebp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov edx, dword [ebp + 8]
add dword [esp + 0x18], ecx
fstp dword [ebx + edi*4]
add edi, 1
cmp edi, dword [edx + 0x10]
jl 0x475d70
mov eax, dword [esp + 0x14]
cmp byte [eax + 1], 0x77
jne 0x475e42
mov ecx, dword [esp + 0x24]
test byte [ecx], 1
jne 0x475e42
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor edi, edi
cmp dword [eax + 0x10], edi
mov dword [esp + 0x18], edx
jle 0x475e42
jmp 0x475df0
mov ecx, dword [esp + 0x18]
fld dword [ebx + edi*4]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
push edi
push eax
call edx
fstp dword [esp + 0x10]
fld dword [esp + 0xc]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x475e23
fstp st(0)
jmp 0x475e25
fstp st(1)
mov eax, dword [ebp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add dword [esp + 0x18], eax
fstp dword [ebx + edi*4]
add edi, 1
cmp edi, dword [ecx + 0x10]
jl 0x475df0
mov edx, dword [esp + 0x14]
cmp byte [edx + 2], 0x77
jne 0x475ec2
mov eax, dword [esp + 0x20]
test byte [eax], 1
jne 0x475ec2
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edi, edi
cmp dword [edx + 0x10], edi
mov dword [esp + 0x18], ecx
jle 0x475ec2
jmp 0x475e70
mov ecx, dword [esp + 0x18]
fld dword [ebx + edi*4]
mov edx, dword [esp + 0x20]
fstp dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [edx]
mov eax, dword [eax + 4]
push edi
push edx
call eax
fstp dword [esp + 0x10]
fld dword [esp + 0xc]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x475ea3
fstp st(0)
jmp 0x475ea5
fstp st(1)
mov ecx, dword [ebp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov edx, dword [ebp + 8]
add dword [esp + 0x18], ecx
fstp dword [ebx + edi*4]
add edi, 1
cmp edi, dword [edx + 0x10]
jl 0x475e70
mov eax, dword [esp + 0x14]
cmp byte [eax + 3], 0x77
jne 0x475f36
mov ecx, dword [esp + 0x1c]
test byte [ecx], 1
jne 0x475f36
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp dword [edx + 0x10], edi
jle 0x475f36
mov eax, dword [esp + 0x2c]
fld dword [eax + edi*4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
fstp dword [esp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push edi
push ecx
mov ecx, ebx
call edx
fstp dword [esp + 0x10]
fld dword [esp + 0xc]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x475f17
fstp st(0)
jmp 0x475f19
fstp st(1)
mov eax, dword [esp + 0x2c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ebx, dword [ebp + 0x10]
fstp dword [eax + edi*4]
add edi, 1
cmp edi, dword [ecx + 0x10]
jl 0x475ee2
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov eax, 0x40
add dword [esp + 0x28], eax
add dword [esp + 0x24], eax
add dword [esp + 0x20], eax
add dword [esp + 0x1c], eax
add dword [esp + 0x14], 4
mov eax, dword [esp + 0x14]
mov ecx, 0xc0
cmp eax, edx
jb 0x475cbd
mov edi, dword [esp + 0x48]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov byte [esi], 0x88
cmp dword [ecx + 0x10], 0
mov eax, dword [edi + 0xa4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x14], 0
jle 0x47637a
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xb0]
sub ecx, eax
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x70]
sub ecx, eax
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x30]
sub ecx, eax
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x64]
sub ecx, eax
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0xa0]
sub ecx, eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc0]
sub ecx, eax
mov dword [esp + 0x28], ecx
mov edi, eax
lea esp, [esp]
mov eax, dword [esp + 0x94]
fld qword [0x4b9080]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
fld dword [edx + ecx*4]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x64], eax
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 0x18]
imul eax, ecx
add eax, dword [edi + 0x14]
mov dword [esp + 0x68], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 8]
fld dword [esp + 0x70]
mov dword [esp + 0x74], edx
fsub dword [edi]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x48]
fstp dword [esp + 0xb0]
fld dword [esp + 0x74]
mov ecx, edi
fsub dword [edi + 4]
add edx, 0x60
mov ebx, 3
fstp dword [esp + 0xb4]
fld dword [esp + 0x78]
fsub dword [edi + 8]
fstp dword [esp + 0xb8]
fld dword [esp + 0x7c]
fsub dword [edi + 0xc]
fstp dword [esp + 0xbc]
fldz
mov eax, dword [esp + 0x4c]
fld dword [eax + ecx]
fmul dword [edx]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fld st(0)
fabs
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [edx - 0x20]
fadd dword [ecx]
fmul dword [edx]
fstp dword [esp + 0x18]
fld dword [esp + 0xc]
fld dword [esp + 0x18]
fld st(0)
fmul st(5)
fcomp st(2)
fnstsw ax
test ah, 0x41
je 0x476153
mov eax, dword [esp + 0x88]
fld dword [eax + ecx]
fadd dword [edx - 0x20]
fmul dword [edx]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fmul st(5)
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x476155
fld st(1)
mov eax, dword [esp + 0x10]
fld1
mov dword [eax + ecx], 4
fdivrp st(1)
fstp dword [esp + 0xc]
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x476130
mov eax, dword [esp + 0x10]
mov dword [eax + ecx], 0xfffffffc
mov eax, dword [esp + 0x8c]
add dword [eax + ecx], 0xfffffffc
fld dword [esp + 0xc]
mov eax, dword [esp + 0x24]
fst dword [eax + ecx]
mov eax, dword [esp + 0x48]
fld dword [eax + 0xdc]
fsubp st(2)
fxch st(1)
fstp dword [esp + 0xc]
fmul dword [esp + 0xc]
jmp 0x476166
fstp st(1)
mov eax, dword [esp + 0x24]
fstp st(1)
fstp st(0)
fst dword [eax + ecx]
fld dword [0x4b343c]
mov eax, dword [esp + 0x28]
fstp dword [eax + ecx]
add ecx, 4
add edx, 4
sub ebx, 1
jne 0x476091
mov ecx, dword [esp + 0x64]
fstp st(0)
movzx edx, word [ecx]
fstp st(0)
mov eax, dword [esp + 0x68]
movzx ecx, word [eax]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x6c]
movzx eax, word [edx]
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fmul dword [esp + 0xa0]
fsub dword [esp + 0xc0]
fstp dword [esp + 0x50]
fld dword [esp + 0xa4]
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
fmulp st(1)
fsub dword [esp + 0xc4]
fstp dword [esp + 0x54]
fld dword [esp + 0xa8]
fild dword [esp + 0xc]
fmulp st(1)
fsub dword [esp + 0xc8]
fstp dword [esp + 0x58]
jmp 0x4761f0
fld dword [esp + 0x50]
fld dword [esp + 0x54]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x476216
fstp st(0)
fld dword [esp + 0x58]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x47622e
fstp st(0)
xor ebx, ebx
jmp 0x476235
fstp st(1)
fld dword [esp + 0x58]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x47622e
fstp st(0)
mov ebx, 1
jmp 0x476235
fstp st(1)
mov ebx, 2
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jnp 0x47630e
lea ecx, [ebx + 4]
mov dl, 1
shl dl, cl
mov byte [esp + 0x47], dl
lea esp, [esp]
mov edi, dword [esp + ebx*4 + 0x64]
movzx eax, word [edi + 2]
xor byte [esi + eax], dl
cmp byte [esi + eax], 0x70
jb 0x4762bd
test eax, eax
je 0x4762d5
mov ecx, dword [esp + 0x48]
shl eax, 4
add eax, dword [ecx + 0xa0]
mov eax, dword [eax + 0xc]
test al, 1
jne 0x4762bd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
mov edx, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x20]
push eax
call edx
fstp dword [esp + 0xc]
fld dword [esp + 0x20]
fld dword [esp + 0xc]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4762bb
fstp dword [esp + 0x20]
jmp 0x4762bd
fstp st(0)
movzx ecx, word [edi]
mov eax, dword [esp + ebx*4 + 0x30]
add eax, edi
cmp cx, word [eax]
mov dword [esp + ebx*4 + 0x64], eax
jne 0x4762e7
mov dl, byte [esp + 0x47]
jmp 0x476260
fld dword [0x4b3440]
mov edi, dword [ebp + 8]
fstp dword [esp + ebx*4 + 0x50]
jmp 0x4761f0
movzx ecx, word [eax]
fld dword [esp + ebx*4 + 0xa0]
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fmulp st(1)
fsub dword [esp + ebx*4 + 0xc0]
fstp dword [esp + ebx*4 + 0x50]
jmp 0x4761f0
mov edx, dword [edi + 0x10]
sub edx, 1
cmp dword [esp + 0x14], edx
jge 0x47635f
mov ecx, dword [esp + 0x90]
sar ecx, 2
lea ecx, [esi + ecx*4 + 4]
cmp esi, ecx
mov eax, esi
mov dword [esp + 0xc], ecx
jae 0x47635f
mov ecx, dword [eax]
mov edx, dword [eax + 4]
and ecx, 0xf0f0f0f
mov ebx, ecx
and edx, 0xf0f0f0f
shl ebx, 4
or ebx, ecx
mov ecx, edx
shl ecx, 4
or ecx, edx
mov dword [eax], ebx
mov dword [eax + 4], ecx
add eax, 8
cmp eax, dword [esp + 0xc]
jb 0x476332
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
add dword [esp + 0x1c], edx
add eax, 1
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
jl 0x475ff0
mov eax, dword [0x4c6060]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x28]
mov dword [eax + 0x20], ecx
jne 0x47639e
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [0x4c6060]
push ecx
call edi
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x4763b9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc